Update roles/distgit/pagure/templates/pagure.cfg

Add Transtats link to CSP_HEADERS for Translation Status button to work.
This commit is contained in:
Sundeep Anand 2021-11-17 09:39:25 +00:00 committed by kevin
parent 176ce60e33
commit 88a5027744

View file

@ -292,12 +292,12 @@ PROJECT_NAME_REGEX = '^[a-zA-z0-9_][a-zA-Z0-9-_\.+]*$'
CSP_HEADERS = (
"default-src 'self'; "
"script-src 'self' '{nonce_script}' https://apps.fedoraproject.org https://mdapi.fedoraproject.org; "
"script-src 'self' '{nonce_script}' https://apps.fedoraproject.org https://mdapi.fedoraproject.org https://transtats.fedoraproject.org; "
"style-src 'self' '{nonce_style}'; "
"object-src 'none'; "
"base-uri 'self'; "
"img-src 'self' https:; "
"connect-src 'self' https://pdc.fedoraproject.org https://apps.fedoraproject.org https://mdapi.fedoraproject.org;"
"connect-src 'self' https://pdc.fedoraproject.org https://apps.fedoraproject.org https://mdapi.fedoraproject.org https://transtats.fedoraproject.org;"
)
{% include "pagure_shared.cfg" %}