Stridsvagn69420 / Cyrkensia

Music Repository Server
https://crates.io/crates/cyrkensia
GNU Affero General Public License v3.0
2 stars 0 forks source link

[BUG/Core/Feature] Add CORS-Everywhere Headers #16

Closed Stridsvagn69420 closed 1 year ago

Stridsvagn69420 commented 2 years ago

In order to serve Azura-Web, I finally got to know how to do CORS correctly, I think.

Both the requested resource and the website need to have these Access-Control headers in order to work:
Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, HEAD

Stridsvagn69420 commented 2 years ago

also add OPTIONS for the allowed methods