【问题标题】:Security headers break Outlook.com add-in in IE11安全标头破坏了 IE11 中的 Outlook.com 加载项
【发布时间】: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


    【解决方案1】:

    在 IE11 中只能有一个“ALLOW-FROM”。所以而不是 X-Frame-Options:ALLOW-FROM https://outlook.mysite.com https://outlook.live.com

    我不得不做 X-Frame-Options:ALLOW-FROM https://outlook.live.com

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-23
      • 2019-11-13
      • 2014-12-12
      • 1970-01-01
      • 2019-02-17
      • 2014-07-21
      • 2015-06-23
      • 2011-04-23
      相关资源
      最近更新 更多