问题
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