Add explanation to docs about cors

This commit is contained in:
kolaente 2020-05-12 11:10:07 +02:00
parent e43e601912
commit cb095d70df
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 4 additions and 0 deletions

View file

@ -74,6 +74,8 @@ redis:
cors: cors:
# Whether to enable or disable cors headers. # Whether to enable or disable cors headers.
# 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.
enable: true enable: true
# A list of origins which may access the api. # A list of origins which may access the api.
origins: origins:

View file

@ -117,6 +117,8 @@ redis:
cors: cors:
# Whether to enable or disable cors headers. # Whether to enable or disable cors headers.
# 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.
enable: true enable: true
# A list of origins which may access the api. # A list of origins which may access the api.
origins: origins: