====== corsharing Plugin ====== ---- plugin ---- description: Enable/disable CORS (Cross-Origin Resource Sharing). author : Cyrille37 email : cyrille@comptoir.net type : action lastupdate : 2022-08-20 compatible : 2016-06-26a "Elenor of Tsort", 2015-08-10a "Detritus", 2022-07-31 "Igor" depends : conflicts : similar : tags : cors downloadurl: https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/-/archive/Release_20220820/dokuwiki-plugin-corsharing-Release_20220820.zip bugtracker : https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/issues sourcerepo : https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing donationurl: screenshot_img : ---- This plugin permits to enable (or disable) CORS http headers to permits web client visiting other website to load some data from your dokuwiki website. When activated the plugin will add this http header to DokuWiki response: Access-Control-Allow-Origin * ===== Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== This plugin has no option. You can just enable or disable it in the [[plugin:extension|Extension Manager]]. Usage example: I wrote this plugin because I use to host some data (csv, geojson) in some DokuWiki instances. But those data are happy if someone else could use them. So with CORS enabled others can pull data, with Javascript, into web browser which are surfing elsewhere on the Web. ===== Syntax ===== No syntax. ===== Configuration and Settings ===== No configuration (for the moment ;-) ). Just enable or disable it. ===== Development ===== Sure U'll have ideas! Do not hesitate to propose them on the [[https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/issues|plugin's bugtracker]]. === Change Log === * **2022-08-20** * Make CORS working with media * **2016-07-31** * Initial release === Known Bugs and Issues === == Plugin Installation Error == "Header does not match it's checksum" * https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/-/issues/1 --- [[user>Cyrille37|cyrille37]] //2022-08-20 14:12// Issue solved, the download url has changed. --- [[user>Cyrille37|cyrille37]] //2022-08-20 14:24// == Page or media == It works with pages but not with media "/_media/*". [[https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/-/issues/2|this issue]] --- [[user>Cyrille37|cyrille37]] //2022-08-20 14:31// === ToDo/Wish List === Sure U'll have ideas! Do not hesitate to propose them on the [[https://framagit.org/Cyrille37/dokuwiki-plugin-corsharing/issues|plugin's bugtracker]]. ===== FAQ ===== ... ===== Discussion ===== ...