ioos / compliance-checker-web

Web-based front-end for the IOOS Compliance Checker project
https://compliance.ioos.us
MIT License
5 stars 10 forks source link

Feedback form CORS error #105

Open n-a-t-e opened 4 years ago

n-a-t-e commented 4 years ago

Hi, thanks for the handy tool!

This is probably more a server config issue than a code issue, but I get a CORS error when I tried the feedback form. I am using Firefox

Screen Shot 2020-04-29 at 2 50 26 PM

Console error is:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://oceansmap2.asascience.com/?SiteID=1&Name=Nate&Email=nate...rg&Comment=test. (Reason: CORS request did not succeed).
benjwadams commented 4 years ago

It looks like this is using a really old domain in a hardcoded fashion that I doubt even can send emails anymore, even with the proper CORS header. In any event, it should be changed to be configurable.

https://github.com/ioos/compliance-checker-web/blob/1b077e908f205236955d81360133f5710edc8f89/cchecker_web/static/js/app/feedback.js#L31

bergmorten commented 11 months ago

This error is still present :-(