bodhi: cors policy for dist-git stg domain
Signed-off-by: amedvede <amedvede@redhat.com>
This commit is contained in:
parent
cf1a1164a4
commit
9abb75e209
1 changed files with 12 additions and 0 deletions
|
@ -697,10 +697,22 @@ pyramid.default_locale_name = en
|
||||||
|
|
||||||
pyramid.includes =
|
pyramid.includes =
|
||||||
pyramid_sawing
|
pyramid_sawing
|
||||||
|
cornice
|
||||||
pyramid_sawing.file = /etc/bodhi/logging.yaml
|
pyramid_sawing.file = /etc/bodhi/logging.yaml
|
||||||
|
|
||||||
debugtoolbar.hosts = 127.0.0.1 ::1
|
debugtoolbar.hosts = 127.0.0.1 ::1
|
||||||
|
|
||||||
|
##
|
||||||
|
## CORS settings
|
||||||
|
##
|
||||||
|
{% if env == "staging" %}
|
||||||
|
cors.policy.origins = https://src.stg.fedoraproject.org
|
||||||
|
cors.policy.headers = Content-Type, Accept
|
||||||
|
cors.policy.expose_headers = Content-Type, Accept
|
||||||
|
cors.policy.methods = GET, OPTIONS
|
||||||
|
cors.policy.max_age = 3600
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
##
|
##
|
||||||
## Database
|
## Database
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue