Replies: 1 comment 4 replies
-
You should configure your server to add CORS headers or host the html page of the map on the same server. This is a typical CORS issue. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am serving a map tile server through Nginx and providing it via a subpath.
Example: http://{ip}/zsmap
I am opening MapLibre GL as follows, but I keep getting the following error:
my MapLibre code:
error code:
The same error also occurs for the following paths:
http://{ip}/styles/basic/[email protected]
http://{ip}/data/openmaptiles.json
If I add the zsmap path prefix, such as http://{ip}/zsmap/styles/basic/[email protected], the files are fetched normally.
How can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions