From 373b249bd491901a7090f72da4248dcfd6dcd720 Mon Sep 17 00:00:00 2001 From: Meis Date: Mon, 28 Mar 2022 15:28:35 -0600 Subject: [PATCH] [Filing] Support both Secure/Plain websockets based on the App protocol --- nginx/nginx.conf | 2 +- src/App.jsx | 2 ++ src/filing/actions/listenForProgress.js | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 35c783f17..fdcfc7d12 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -23,7 +23,7 @@ http { add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload'; # CSP - add_header Content-Security-Policy "default-src 'self' blob:; script-src 'self' 'unsafe-inline' blob: data: https://tagmanager.google.com https://www.googletagmanager.com https://www.google-analytics.com https://*.cfpb.gov https://www.consumerfinance.gov; img-src 'self' blob: data: https://www.google-analytics.com https://raw.githubusercontent.com; style-src 'self' 'unsafe-inline'; font-src 'self' data:; object-src 'none'; frame-src 'self' https://www.youtube.com/ https://ffiec.cfpb.gov/; connect-src 'self' ws://*.cfpb.gov https://*.cfpb.gov https://www.consumerfinance.gov https://raw.githubusercontent.com https://ffiec-api.cfpb.gov https://ffiec.cfpb.gov https://*.mapbox.com https://www.google-analytics.com https://s3.amazonaws.com;"; + add_header Content-Security-Policy "default-src 'self' blob:; script-src 'self' 'unsafe-inline' blob: data: https://tagmanager.google.com https://www.googletagmanager.com https://www.google-analytics.com https://*.cfpb.gov https://www.consumerfinance.gov; img-src 'self' blob: data: https://www.google-analytics.com https://raw.githubusercontent.com; style-src 'self' 'unsafe-inline'; font-src 'self' data:; object-src 'none'; frame-src 'self' https://www.youtube.com/ https://ffiec.cfpb.gov/; connect-src 'self' ws://*.cfpb.gov wss://*.cfpb.gov https://*.cfpb.gov https://www.consumerfinance.gov https://raw.githubusercontent.com https://ffiec-api.cfpb.gov https://ffiec.cfpb.gov https://*.mapbox.com https://www.google-analytics.com https://s3.amazonaws.com;"; # Restrict referrer add_header Referrer-Policy "strict-origin"; diff --git a/src/App.jsx b/src/App.jsx index 98da504a8..e33f8cbc0 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -60,6 +60,8 @@ const App = () => { {showFooter &&