ModioAB / caramel

Caramel is a CA Registry Manager
GNU Affero General Public License v3.0
16 stars 5 forks source link

Add a permissive CORS header on /root.crt #52

Open Spindel opened 5 years ago

Spindel commented 5 years ago

We should be permissive about CORS for our GET-able resources (root.crt et-al)

Suggest that we add Access-Control-Allow-Origin: * to root.crt view.

For details, see: https://fetch.spec.whatwg.org/#http-cors-protocol

Further use could be done by permitting CORS GET requests on downloading fresh certificates, and maybe POST, but that should be a separate issue.

Originally @niligulmohar comment from the Grafana plugin.