老师,无法打印 this.book
来源:4-2 阅读器解析和渲染
肖慕粉
2019-04-06
listen 8081;
server_name resource;
root C://Users//Lenovo//Desktop//myresource;
autoindex on;
location / {
add_header Access-Control-Allow-Origin *;
}
add_header Cache-Control "no-cache,must-revalidate";
GET http://192.168.0.114:8081/epub/META-INF/container.xml 404 (Not Found)
Access to XMLHttpRequest at 'http://192.168.0.114:8081/epub/META-INF/container.xml' from origin 'http://192.168.0.114:8080'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
老师,我可以正常访问nginx的文件,不知是否config配置除了问题?感觉是跨域失败,谢谢老师!
写回答
1回答
-
你好,这个不是跨域问题,提示的是404错误,表示资源文件不存在,你的路径写的有误哦,http://192.168.0.114:8081/epub/META-INF/container.xml:路径中很明显遗留了分类和电子书名称
022020-09-21
相似问题
无法打印this.book
回答 2
无法打开index.html
回答 2