Access to Image from origin 'null' has been blocked by CORS policy

前端 未结 8 1636
野的像风
野的像风 2020-12-01 04:09

I have JavaScript application in OpenLayers 3, and my base layer is created from local tiles. I work only in my computer so I do not know why I have CORS error.



        
8条回答
  •  -上瘾入骨i
    2020-12-01 04:59

    A solution to this is to serve your code, and make it run on a server, you could use web server for chrome to easily serve your pages.

提交回复
热议问题