zooniverse / AnnoTate

Full text transcription app for the Tate Britain
http://anno.tate.org.uk
Other
12 stars 2 forks source link

New oAuth encounters errors on Logout attempt - Cross-Origin Issues #207

Closed shaunanoordin closed 8 years ago

shaunanoordin commented 8 years ago

Issue: at https://anno.tate.org.uk/ , users can log in normally via Panoptes. However, after clicking the logout button, users will receive an error message and the app will refuse to acknowledge that the user has logged out.

Analysis: Error message (on Chrome 50): XMLHttpRequest cannot load https://panoptes.zooniverse.org/users/sign_in/?now=1461021973877. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://anno.tate.org.uk' is therefore not allowed access. The response had HTTP status code 404.

These errors follow the recent merge of the new oAuth implementation with PR #206. There have been no logout issues with the same app when tested at https://preview.zooniverse.org/annotate. Therefore, the most likely explanation is that there is a specific server-side whitelist that needs to be configured to allow cross-origin or cross-domain access.

Tested on Chrome50/Firefox45 + Win10/SurfacePro3.

Status: Investigating Actions: Checking with fellow devs to see who might know about a cross-origin/cross-domain whitelist.

shaunanoordin commented 8 years ago

Yup, it was the whitelist - this has been solved. Thanks, Cam!