Correct the CORS setting for staging Bodhi.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
6995f01232
commit
d5bab6cc8a
1 changed files with 5 additions and 1 deletions
|
@ -555,7 +555,11 @@ cors_origins_ro = *
|
||||||
# This should be more locked down to avoid cross-site request forgery.
|
# This should be more locked down to avoid cross-site request forgery.
|
||||||
cors_origins_rw = https://bodhi{{env_suffix}}.fedoraproject.org
|
cors_origins_rw = https://bodhi{{env_suffix}}.fedoraproject.org
|
||||||
|
|
||||||
cors_connect_src = https://*.{{env_suffix}}fedoraproject.org/ wss://hub.{{env_suffix}}fedoraproject.org:9939/
|
{% if env == 'production' %}
|
||||||
|
cors_connect_src = https://*.fedoraproject.org/ wss://hub.fedoraproject.org:9939/
|
||||||
|
{% elif env == 'staging' %}
|
||||||
|
cors_connect_src = https://*.stg.fedoraproject.org/ wss://hub.stg.fedoraproject.org:9939/
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue