mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 11:00:32 +08:00
w3c recommends detecting the client origin and echoing it back to them if it matches ours.
This commit is contained in:
@@ -2,8 +2,8 @@ Alias /static /usr/lib/python2.7/site-packages/bodhi/static/
|
||||
|
||||
<Directory /usr/lib/python2.7/site-packages/bodhi/static>
|
||||
# modern browsers require that fonts have this
|
||||
Header set Access-Control-Allow-Origin "https://*.fedoraproject.org"
|
||||
Header set Access-Control-Allow-Origin "http://*.fedoraproject.org"
|
||||
SetEnvIf Origin "^http(s)?://(.+\.)?fedoraproject\.org$" AccessControlAllowOrigin=$0
|
||||
Header set Access-Control-Allow-Origin %{AccessControlAllowOrigin} env=AccessControlAllowOrigin
|
||||
</Directory>
|
||||
|
||||
WSGIDaemonProcess bodhi user=bodhi group=bodhi display-name=bodhi processes={{wsgi_procs}} threads={{wsgi_threads}}
|
||||
|
||||
Reference in New Issue
Block a user