icebreaker-science / backend

The backend (Spring Boot) part of the icebreaker.science application
Apache License 2.0
2 stars 0 forks source link

Enable all cross origin request for development mode #75

Closed chaoran-chen closed 3 years ago

chaoran-chen commented 3 years ago

Before, GET, POST, and HEAD requests were always allowed. Instead, all methods should be allowed if the server is run in development mode but no cross origin request should be allowed otherwise.