Font from origin has been blocked in ASP MVC

喜欢而已 提交于 2019-12-23 17:43:31

问题


I put font references to sub domain and I using that like this:

<link href="https://cdn.example.com/Styles/font-awesome.min.css" rel="stylesheet" />

Font from origin 'https://cdn.example.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com' is therefore not allowed access.

I found a solution but it doesn't help me, I think the reason is I use https instead of http.

Serving contain to sub domains from an MVC / IIS web application

来源:https://stackoverflow.com/questions/35099753/font-from-origin-has-been-blocked-in-asp-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!