aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-01-28 19:59:17 -0500
committerUnknwon <u@gogs.io>2017-01-28 19:59:17 -0500
commit5e01ecbc0528488427ee455578acbe7ff92efcfe (patch)
tree5a1ec8467ce931e04a28bb079dd24e8180512b6f /conf
parentc98aa0e8950393ac43dc66e8de85973d9cd029ef (diff)
Able to set custom Access-Control-Allow-Origin header (#3987)
Added new config option '[http] ACCESS_CONTROL_ALLOW_ORIGIN'.
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index f11627c4..3c0ee503 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -142,6 +142,10 @@ ENABLE_GZIP = false
; Landing page for non-logged users, can be "home" or "explore"
LANDING_PAGE = home
+[http]
+; Value for Access-Control-Allow-Origin header, default is not to present
+ACCESS_CONTROL_ALLOW_ORIGIN =
+
; Define allowed algorithms and their minimum key length (use -1 to disable a type)
[ssh.minimum_key_sizes]
ED25519 = 256