jdemaeyer / brightsky

JSON API for DWD's open weather data.
https://brightsky.dev/
MIT License
290 stars 18 forks source link

API Documentation example isn't working #103

Closed bjoernh closed 3 years ago

bjoernh commented 3 years ago

Hi, if I try to explore the api with the documentation website https://brightsky.dev/docs/ all api calls failed and returns an error:

Response Status: Request header field Cache-Control is not allowed by Access-Control-Allow-Headers. (CORS or Network Issue)

Seems like a misconfiguration with the deployment.

jdemaeyer commented 3 years ago

Hi @bjoernh, thanks for the report!

Looks like rapidoc recently started sending the Cache-Control header, which we currently don't allow in our CORS settings.

jdemaeyer commented 3 years ago

Fixed via 383305e and jdemaeyer/brightsky-infrastructure@e3045e3