我一直在学习本教程,以便为云服务启用Azure:。我将我的捆绑和缩小与CDN集成在一起,除了我的站点无法获取字体之外,一切都很好,我得到了以下错误:
Font from origin 'http://azurecdn.vo.msecnd.net' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '
Service worker注册失败,出现以下异常。
Failed to register ServiceWorker. The origin of the provider scriptURL('https://dev.xyz.cdn.com') does not match the current origin ('https://dev.xyz.com').
目前所有资产都部署在CDN中。因此,域与脚本源url不匹配。如何解决这个问题?