mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
appending api hosted urls to append to csp to allow for connections
This commit is contained in:
@@ -183,6 +183,7 @@ def _csp(config):
|
|||||||
csp["connect-src"].append(ws_url)
|
csp["connect-src"].append(ws_url)
|
||||||
return csp
|
return csp
|
||||||
|
|
||||||
|
|
||||||
def create_app(application):
|
def create_app(application):
|
||||||
@application.after_request
|
@application.after_request
|
||||||
def add_csp_header(response):
|
def add_csp_header(response):
|
||||||
|
|||||||
Reference in New Issue
Block a user