NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

Enable Access-Control-Allow-Origin policy #261

Open daksh-agarwal opened 7 years ago

daksh-agarwal commented 7 years ago

I am running an experiment in PsiTurk that is running on some other port. When I am trying to POST that data back to the server, it is running into the error 'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:22362/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).'

Is there any way I can allow CORS on PsiTurk server? TIA.

daksh-agarwal commented 7 years ago

To add to it, I have already tried adding 'Access-Control-Allow-Origin = *' to my config file. But, it is not working with this.