无法打印this.book
来源:4-2 阅读器解析和渲染

sam_liu
2020-01-29
报错:Access to XMLHttpRequest at ‘http://192.168.43.107:8081/epub/History/2017_Book_InterdisciplinaryPerspectivesO.epub’ from origin ‘http://192.168.43.107:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
nginx.conf: location / {
add_header Access-Control-Allow-Origin *;
}
add_header Cache-Control “no-cache, must-revalidate”
nginx启动了还出现跨域问题,老师这是这么回事啊?
写回答
2回答
-
sam_liu
提问者
2020-02-19
自己已解决了,谢谢老师
012022-03-24 -
小俊001
2020-01-30
同学您好,从您发的这些内容来判断,您的此部分的配置是正确的,如果方便的话提供一下完整的配置文件,有可能是其他地方的问题引起的。
00
相似问题