feat: added Access-Control-Allow-Origin header to the Bodhi response on requests from dist-git for staging

Signed-off-by: amedvede <amedvede@redhat.com>
This commit is contained in:
amedvede 2024-01-09 11:15:12 +01:00 committed by zlopez
parent 02e14dfdf9
commit d94a49a2b4

View file

@ -48,6 +48,11 @@ MaxRequestWorkers 100
ExpiresDefault "access plus 1 month"
Header unset ETag
</Location>
{% if env == 'staging' %}
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "https://src.stg.fedoraproject.org"
</IfModule>
{% endif %}
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /httpdir/accesslog combined
ErrorLog /httpdir/errorlog