From cb095d70df81a57b86b483dbf00e5a7816b6949a Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 12 May 2020 11:10:07 +0200 Subject: [PATCH] Add explanation to docs about cors --- config.yml.sample | 2 ++ docs/content/doc/setup/config.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config.yml.sample b/config.yml.sample index fe136d89cb4..a5c99f0182a 100644 --- a/config.yml.sample +++ b/config.yml.sample @@ -74,6 +74,8 @@ redis: cors: # 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 # A list of origins which may access the api. origins: diff --git a/docs/content/doc/setup/config.md b/docs/content/doc/setup/config.md index d84b6effbae..105b6ec22ff 100644 --- a/docs/content/doc/setup/config.md +++ b/docs/content/doc/setup/config.md @@ -117,6 +117,8 @@ redis: cors: # 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 # A list of origins which may access the api. origins: