Lucas_Werkmeister_WMDE updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
As far as I understand, this will definitely require at least an `Access-Control-Allow-Origin: *` header on the `/data/main`, redirect, which can be added [like this](http://mark.koli.ch/set-cache-control-and-expires-headers-on-a-redirect-with-mod-rewrite). After that, there are different options. We can make `index.php` send that header as well on any successful `GET` request to the `Data:` namespace, but this seems a bit risky. Alternatively, we could make `Special:PageData` redirect to something other than `index.php?action="" (which isn’t a very nice solution anyways), e. g. an endpoint of the REST API. The REST API already supports the endpoint `/page/wikitext/{title}`, but only for `POST` requests. We could add support for `GET` requests to it, or perhaps add another endpoint (after all, the content model isn’t actually wikitext).

See also the related issue {T150290}, which also features a redirect chain with partial CORS support.

TASK DETAIL
https://phabricator.wikimedia.org/T177966

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: daniel, Aklapper, Jdforrester-WMF, Smalyshev, Lucas_Werkmeister_WMDE, Dfil7, Icedevil, GoranSMilovanovic, 45Jayjay1969, QZanden, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to