Google Chrome 控制台错误
Google Chrome Console Error
这是一个 Shopify App.Shopify,可将我的 Web 应用程序加载到他们的 iframe 上。
它在 Mozila Firefox、IE 和除 Chrome 以外的其他浏览器上运行良好。当我尝试在 Chrome 上加载时,它显示以下错误。
Refused to frame 'http://5281a995.ngrok.io/' because it violates the
following Content Security Policy directive: "child-src 'self'
https://* shopify-pos://*". Note that 'frame-src' was not explicitly
set, so 'child-src' is used as a fallback.
该应用似乎未使用 SSL。尝试调整您的代码 and/or 回调 URL 以便您的嵌入式应用在 https://
而不是 http://
.
上提供服务
这是一个 Shopify App.Shopify,可将我的 Web 应用程序加载到他们的 iframe 上。 它在 Mozila Firefox、IE 和除 Chrome 以外的其他浏览器上运行良好。当我尝试在 Chrome 上加载时,它显示以下错误。
Refused to frame 'http://5281a995.ngrok.io/' because it violates the following Content Security Policy directive: "child-src 'self' https://* shopify-pos://*". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.
该应用似乎未使用 SSL。尝试调整您的代码 and/or 回调 URL 以便您的嵌入式应用在 https://
而不是 http://
.