weixin_39942213
weixin_39942213
2020-12-08 22:47

Model Checking Pane empty in VSCode online because of unsafe-inline

Peek 2020-01-13 11-08


main.js:441 Refused to load the stylesheet 'https://4651e61d-b770-415f-8cbc-cbbc176dae2d.vscode-webview-test.com/26076a4de974ead31f97692a0d32f90d735645c0/vscode-resource/file///home/vsonline/.vscode-remote/extensions/alygin.vscode-tlaplus-1.3.1/resources/check-result-view.css' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' https://*.vscode-webview-test.com/26076a4de974ead31f97692a0d32f90d735645c0". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

(anonymous) @ main.js:441
setTimeout (async)
(anonymous) @ main.js:438


main.js:441 Refused to load the script 'https://4651e61d-b770-415f-8cbc-cbbc176dae2d.vscode-webview-test.com/26076a4de974ead31f97692a0d32f90d735645c0/vscode-resource/file///home/vsonline/.vscode-remote/extensions/alygin.vscode-tlaplus-1.3.1/resources/check-result-view.js' because it violates the following Content Security Policy directive: "script-src https://*.vscode-webview-test.com/26076a4de974ead31f97692a0d32f90d735645c0". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

(anonymous) @ main.js:441
setTimeout (async)
(anonymous) @ main.js:438

Something appears to have changed in VSCode online, because version 1.1 and 1.2 - which I remember to work correctly - show the same error.

该提问来源于开源项目:alygin/vscode-tlaplus

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39573822 weixin_39573822 5月前

    v1.3.2 with this fix has been published. Thanks for helping with this one.

    点赞 评论 复制链接分享
  • weixin_39573822 weixin_39573822 5月前

    You're right, the usafe-inline is the root cause here. I'll have a look at it.

    点赞 评论 复制链接分享
  • weixin_39573822 weixin_39573822 5月前

    , could you, please, try this build? vscode-tlaplus-1.3.2.vsix.zip

    点赞 评论 复制链接分享
  • weixin_39942213 weixin_39942213 5月前

    Awesome, it work!

    点赞 评论 复制链接分享

相关推荐