magnusmanske / quickstatements

The official repo for the QuickStatements PHP/HTML/JS interface
https://quickstatements.toolforge.org/
GNU General Public License v3.0
42 stars 16 forks source link

Missing CORS headers for other tools #12

Open bjonnh opened 3 years ago

bjonnh commented 3 years ago

I tried to use SourceMD, but it cannot connect to quickstatements due to missing CORS-headers. Could you please add them?

(see that issue for more details https://github.com/magnusmanske/papers/issues/9 )

mvolz commented 3 years ago

Ran into the same issue! This is the error:

Access to XMLHttpRequest at 'https://quickstatements.toolforge.org/api.php?action=is_logged_in' (redirected from 'https://tools.wmflabs.org/quickstatements/api.php?action=is_logged_in') from origin 'https://sourcemd.toolforge.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.