Clarify docs about cors configuration

This commit is contained in:
kolaente 2020-12-16 13:23:26 +01:00
parent e4de700a10
commit 90ae940a6b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -88,7 +88,7 @@ cors:
# Note: If you want to put the frontend and the api on seperate domains or ports, you will need to enable this. # Note: If you want to put the frontend and the api on seperate domains or ports, you will need to enable this.
# Otherwise the frontend won't be able to make requests to the api through the browser. # Otherwise the frontend won't be able to make requests to the api through the browser.
enable: true enable: true
# A list of origins which may access the api. # A list of origins which may access the api. These need to include the protocol (`http://` or `https://`) and port, if any.
origins: origins:
- "*" - "*"
# How long (in seconds) the results of a preflight request can be cached. # How long (in seconds) the results of a preflight request can be cached.