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:
parent
02e14dfdf9
commit
d94a49a2b4
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ MaxRequestWorkers 100
|
||||||
ExpiresDefault "access plus 1 month"
|
ExpiresDefault "access plus 1 month"
|
||||||
Header unset ETag
|
Header unset ETag
|
||||||
</Location>
|
</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
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||||
CustomLog /httpdir/accesslog combined
|
CustomLog /httpdir/accesslog combined
|
||||||
ErrorLog /httpdir/errorlog
|
ErrorLog /httpdir/errorlog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue