css,js files are stored in Tencent Cloud"s cos (object Cloud Storage), where font.css has a request to obtain fonts, icons and other files in the same directory. Some of the code is as follows.
@font-face {
font-family: "Source Sans Pro";
font-style: normal;
font-weight: 300;
src: local("Source Sans Pro Light"), local("SourceSansPro-Light"), url("../fonts/sourcesanspro/sourcesanspro-light.woff") format("woff");
}
@font-face {
font-family: "Source Sans Pro";
font-style: normal;
font-weight: 400;
src: local("Source Sans Pro"), local("SourceSansPro-Regular"), url("../fonts/sourcesanspro/sourcesanspro.woff") format("woff");
}
@font-face {
font-family: "Source Sans Pro";
font-style: normal;
font-weight: 700;
src: local("Source Sans Pro Bold"), local("SourceSansPro-Bold"), url("../fonts/sourcesanspro/sourcesanspro-bold.woff") format("woff");
}
@font-face{font-family:iconfont;src:url(../fonts/iconfont/iconfont.eot?t=1517993881078);src:url(../fonts/iconfont/iconfont.eot?t=1517993881078-sharpiefix) format("embedded-opentype"),url(../fonts/iconfont/iconfont.woff?t=1517993881078) format("woff"),url(../fonts/iconfont/iconfont.ttf?t=1517993881078) format("truetype"),url(../fonts/iconfont/iconfont.svg?t=1517993881078-sharpiconfont) format("svg")}
Cloud storage uses a custom domain name, and then go to Tencent Cloud CDN configuration page-"Advanced configuration -" HTTP Header configuration-""
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Max-Age: 1728000
The problem is still unsolved, and sometimes an error is made that the Access-Control-Allow-Origin is empty. There are also sometimes errors that Access-Control-Allow-Origin has two *.
now I don"t know how to set it up. Ask the god to help solve it.