【发布时间】:2017-03-10 06:35:36
【问题描述】:
我正在使用 express(lusca) 添加安全标头,但仍然无法在 chrome 中的 jsbin/codepen/jsfiddle/localhost 中呈现我的网页,奇怪的事实即使没有标题,它是否也可以在 IE 中使用。
我之所以使用 csp's frame-ancestor 是因为我听说 x-frame-options 已经过时并且不允许多个受信任的主机和通配符。
请提出一些建议。 我只想让我的应用iframed仅来自某些特定主机。
app.use(lusca({
csp: {
policy: {
'frame-ancestors': 'http://*.jsbin.com',
},
}
}));
【问题讨论】:
标签: google-chrome express iframe content-security-policy x-frame-options