Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 response without CORS header #2

Open
dnltsk opened this issue Oct 19, 2016 · 2 comments
Open

403 response without CORS header #2

dnltsk opened this issue Oct 19, 2016 · 2 comments

Comments

@dnltsk
Copy link

dnltsk commented Oct 19, 2016

Hi,

the example application is unable to handle the WDT responses when wrong APP Key/ID are used because the response has no Access-Control-Allow-Origin header set.

PLAIN URL
https://skywisetiles.wdtinc.com/swarmweb/valid_frames?product=nalowaltradarcontours&format=JSON

CURL
curl -I -X GET 'https://skywisetiles.wdtinc.com/swarmweb/valid_frames?product=nalowaltradarcontours&format=JSON' -H 'Host: skywisetiles.wdtinc.com' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0' -H 'Accept: /' -H 'Accept-Language: de,en-US;q=0.7,en;q=0.3' --compressed -H 'app_id: INVALID_APP_ID' -H 'app_key: INVALID_APP_KEY' -H 'Origin: http://localhost:8081' -H 'Referer: http://localhost:8081/examples/google.html' -H 'Connection: keep-alive'

I think CORS should be enabled in all responses to let the client application decide how the react on a 403.

@lrobb-zz
Copy link

Thanks @teeschke ... we'll work on getting this fixed.

@lrobb-zz
Copy link

@teeschke - This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants