helmo added a comment.

  In the DockerWikibaseQueryService I also noticed CORS errors in the Firefox 
developer console,
  
  > Cross-Origin Request Blocked: The Same Origin Policy disallows reading the 
remote resource at 
https://api.kunstmuseum.nl/w/api.php?origin=*&action=wbsearchentities&format=json&limit=50&continue=0&language=en&uselang=en&search=f&type=item.
 (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
  
  After some experimentation it seems to help to add the lines below to the 
Apache reverse proxy vhost for the api site.
  
    Header set Access-Control-Allow-Origin *
    Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, PUT, DELETE"
    Header set Access-Control-Allow-Headers "Origin, Content-Type, Accept, 
Authorization, X-Request-With, x-requested-with"
  
  I'm not sure if this opens things up too much though...

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

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

To: helmo
Cc: Addshore, Aklapper, helmo, Samantha_Alipio_WMDE, Akuckartz, darthmon_wmde, 
Jelabra, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Asahiko, despens, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to