【发布时间】:2018-02-09 15:18:40
【问题描述】:
当我尝试在 IE11 中的 Outlook.com 中运行 Outlook 加载项时,我看到了这个。
控制台中的错误似乎与我的代码无关。
我认为这可能与我正在使用的标题有关。但是如果没有详细的错误消息,我不知道要更改什么(我不是标题专家)。
这是我正在使用的标题:
Cache-Control:max-age=0, no-cache, no-store, must-revalidate, private
Connection:keep-alive
Content-Encoding:gzip
Content-Security-Policy:default-src 'self'; script-src 'self' 'unsafe-inline' https://appsforoffice.microsoft.com https://ajax.aspnetcdn.com https://telemetryservice.firstpartyapps.oaspapps.com https://browser.pipe.aria.microsoft.com https://api.mixpanel.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https://*.mysite.com https://telemetryservice.firstpartyapps.oaspapps.com; connect-src 'self' https://*.mysite.com https://telemetryservice.firstpartyapps.oaspapps.com https://browser.pipe.aria.microsoft.com https://api.mixpanel.com; frame-ancestors *
Content-Type:text/html
Date:Fri, 09 Feb 2018 14:15:38 GMT
ETag:W/"5a7da721-30e"
Last-Modified:Fri, 09 Feb 2018 13:50:25 GMT
Pragma:no-cache
Server:nginx/1.12.2
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-Frame-Options:ALLOW-FROM https://outlook.mysite.com https://outlook.live.com
X-XSS-Protection:1; mode=block
值得注意的是,在网络选项卡下,我可以看到 html 页面。它被获取为 200。
感谢您的建议!
【问题讨论】:
标签: nginx outlook http-headers internet-explorer-11 outlook-addin