w3c recommends detecting the client origin and echoing it back to them if it matches ours.
This commit is contained in:
parent
0245b760f8
commit
ee4c97bab4
1 changed files with 2 additions and 2 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue