Commit 373b249 1 parent 5ce5f4e commit 373b249 Copy full SHA for 373b249
File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 23
23
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload' ;
24
24
25
25
# CSP
26
- 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;" ;
26
+ 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;" ;
27
27
28
28
# Restrict referrer
29
29
add_header Referrer-Policy "strict-origin" ;
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ const App = () => {
60
60
< Route component = { NotFound } />
61
61
</ Switch >
62
62
{ showFooter && < Footer config = { config } /> }
63
+ { console . log ( window . location )
64
+ }
63
65
</ AppContext . Provider >
64
66
)
65
67
}
Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ export default function listenForProgress() {
50
50
const wsBaseUrl = process . env . REACT_APP_ENVIRONMENT === 'CI'
51
51
? `${ window . location . hostname } :8080`
52
52
: `${ window . location . host } /v2/filing`
53
+
54
+ const socketType = window . location . protocol == 'https:' ? 'wss' : 'ws'
53
55
54
56
const wsProgressUrl = quarter
55
57
? `/institutions/${ lei } /filings/${ year } /quarter/${ quarter } /submissions/${ sequenceNumber } /progress`
56
58
: `/institutions/${ lei } /filings/${ year } /submissions/${ sequenceNumber } /progress`
57
59
58
- let socket = new WebSocket ( `ws ://${ wsBaseUrl } ${ wsProgressUrl } ` )
60
+ let socket = new WebSocket ( `${ socketType } ://${ wsBaseUrl } ${ wsProgressUrl } ` )
59
61
60
62
socket . onopen = ( event ) => {
61
63
console . log ( '>>> Socket open! Listening for Progress...' )
You can’t perform that action at this time.
0 commit comments