bodhi: cors policy for dist-git stg domain

Signed-off-by: amedvede <amedvede@redhat.com>
This commit is contained in:
amedvede 2024-01-16 13:57:23 +01:00 committed by zlopez
parent cf1a1164a4
commit 9abb75e209

View file

@ -697,10 +697,22 @@ pyramid.default_locale_name = en
pyramid.includes =
pyramid_sawing
cornice
pyramid_sawing.file = /etc/bodhi/logging.yaml
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
##