dist-git: Custom csp policy that allows connecting to apps.fp.o
This commit is contained in:
parent
fe42cebb00
commit
2de580306b
1 changed files with 9 additions and 0 deletions
|
@ -296,4 +296,13 @@ PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.+]*$'
|
||||||
|
|
||||||
HTTP_REPO_ACCESS_GITOLITE = None
|
HTTP_REPO_ACCESS_GITOLITE = None
|
||||||
|
|
||||||
|
CSP_HEADERS = (
|
||||||
|
"default-src 'self';"
|
||||||
|
"script-src 'self' '{nonce_script}' https://apps.fedoraproject.org; "
|
||||||
|
"style-src 'self' '{nonce_style}'; "
|
||||||
|
"object-src 'none';"
|
||||||
|
"base-uri 'self';"
|
||||||
|
"img-src 'self' https:;"
|
||||||
|
)
|
||||||
|
|
||||||
{% include "pagure_shared.cfg" %}
|
{% include "pagure_shared.cfg" %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue