使用电子邮件预览中内置的rails时获取以下信息:
Refused to load the stylesheet
'http://app.lvh.me:3000/packs/...' because it violates
the following Content Security
Policy directive: "style-src 'unsafe-inline'".
结束在标题中添加以下内容:
meta http-equiv="Content-Security-Policy"
content="default-src *; style-src 'self' http://* 'unsafe-inline'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval';"
但仍然遇到问题
有没有人遇到并解决了这个问题?
答案 0 :(得分:0)