参考一下这篇文章:
font-face跨域办法
如果想设定多个域名的话可以尝试根据请求域名动态添加header,比如:
public void ProcessRequest(HttpContext context)
{
string host = context.Request.UrlReferrer == null ? "" : context.Request.UrlReferrer.Host;
if (host=="xxx" || host=="xxx")
{
context.Response.AddHeader("Access-Control-Allow-Origin", "http://" + host);
}
context.Response.Write(DateTime.Now.ToString());
}
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.