mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Compare commits
2 Commits
fff81870e5
...
a962da9c7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a962da9c7d | ||
|
|
3a468c77aa |
@@ -171,7 +171,8 @@ def _csp(config):
|
||||
def create_app(application):
|
||||
@application.after_request
|
||||
def add_csp_header(response):
|
||||
response.headers['Content-Security-Policy'] = "frame-src https://www.googletagmanager.com"
|
||||
existing_csp = response.headers.get("Content-Security-Policy", "")
|
||||
response.headers["Content-Security-Policy"] = existing_csp + "; form-action 'self';"
|
||||
return response
|
||||
# @application.context_processor
|
||||
# def inject_feature_flags():
|
||||
|
||||
Reference in New Issue
Block a user