gathering / gondul

Network management/monitoring system specialized for temporary events
http://tech.gathering.org
GNU General Public License v2.0
42 stars 10 forks source link

CORS config for third-party applications #210

Open sklirg opened 5 years ago

sklirg commented 5 years ago

Over at https://github.com/sklirg/pocket-gondul I require some CORS changes to be able to work with the Gondul API.

I'm not sure what the best way to resolve this issue is, but here are some suggestions:

1) CORS whitelist origins

2) CORS whitelist all origins

3) Host the third-party applications on the same domain as Gondul

Further thoughts:

Consider whitelisting some other HTTP methods, as well as the Authorization header. GET/HEAD is currently allowed through, but not with Authorization, so only for same-origin requests, where CORS isn't an issue... :D