Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

Commit aebd8d4

Browse files
committed
fix(CSP): frame-src is depricated, setting child-src to non
1 parent 2b7d728 commit aebd8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ app.configure ->
3030
app.use (req, res, next) ->
3131
if req.url == "/"
3232
# Inline style hashes, in case we want to remove unsafe-inline:
33-
# 'sha256-vv5i1tRAGZ/gOQeRpI3CEWtvnCpu5FCixlD2ZPu7h84=' : angular-charts
33+
# 'sha256-vv5i1tRAGZ/gOQeRpI3CEWtvnCpu5FCixlD2ZPu7h84=' : angular-charts
3434
# 'sha256-47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU=' : angular-charts
3535
# lots... : jQuery
36-
res.setHeader "content-security-policy", "img-src 'self' data:; style-src 'self' 'unsafe-inline'; frame-src 'self' https://*.youtube.com; script-src 'self' 'sha256-mBeSvdVuQxRa2pGoL8lzKX14b2vKgssqQoW36iRlU9g='; connect-src 'self' *.blockchain.info *.blockchain.com wss://*.blockchain.info https://blockchain.info https://api.sharedcoin.com; object-src 'none'; media-src 'self' data: mediastream: blob:; font-src 'self'"
36+
res.setHeader "content-security-policy", "img-src 'self' data:; style-src 'self' 'unsafe-inline'; child-src 'none'; script-src 'self' 'sha256-mBeSvdVuQxRa2pGoL8lzKX14b2vKgssqQoW36iRlU9g=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='; connect-src 'self' *.blockchain.info *.blockchain.com wss://*.blockchain.info https://blockchain.info https://api.sharedcoin.com; object-src 'none'; media-src 'self' data: mediastream: blob:; font-src 'self'"
3737
res.setHeader "X-Frame-Options", "SAMEORIGIN"
3838
if req.url.indexOf("beta_key")
3939
# Don't cache these

0 commit comments

Comments
 (0)