Access to XMLHttpRequest blocked by CORS policy: Cross origin requests

Viewed 3106

I am creating a web map using leaflet. It is my first time in this. So, I follow a tutorial from leaflet. However, when I try to open a geojson file in my page, an error occurs:

"Access to XMLHttpRequest at 'file:///...../page/map.geojson' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https."

I have windows 10. I search this error. However I do not understand the tips. I have afraid to do something wrong. Can anyone help me please?

0 Answers
Related