Sendouc / sendou.ink

Competitive Splatoon Platform
https://sendou.ink
GNU General Public License v3.0
227 stars 71 forks source link

Properly handle OPTIONS requests to public API routes #1738

Closed inkfarer closed 1 month ago

inkfarer commented 1 month ago

Prior to this PR, OPTIONS requests were rejected by the server as browsers don't include the Authorization header with them: image

After this PR, OPTIONS requests to the public API get an empty response with the proper CORS headers: image