本帖最后由 WT_0213 于 2023-12-1 11:25 编辑
第一个小问题,页面缩放会导致右侧导航菜单丢失,鼠标指向标签下面帖子自动切换其他栏目。
第二个小问题,稍微旧点的浏览器这种小图表都变成乱码了。比如我的谷歌浏览器。
以下是问题产生原因和建议
Access to font at 'http://bbs.ai-thinker.com/static/image/common/dzicon.woff2'
from origin 'http://bbs.aithinker.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET http://bbs.ai-thinker.com/static/image/common/dzicon.woff2 net::ERR_FAILED 200
forum.php:1
Access to font at 'http://bbs.ai-thinker.com/static/image/common/dzicon.woff' from origin 'http://bbs.aithinker.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin'
header is present on the requested resource.
style_10_common.css:1
GET http://bbs.ai-thinker.com/static/image/common/dzicon.woff net::ERR_FAILED 200
因为谷歌浏览器和IE9不支持对icon font字体的跨域访问”
建议在图标字体文件所在服务器配置Header参数“Access-Control-Allow-Origin”允许当前域名才可以。而且,经过验证,必须将参数“Access-Control-Allow-Origin”配置为“”才可以,配置为“.当前域名”并不可以。 |