Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to resolve openmaptiles-server cross-domain #507

Closed
HeiYanjing opened this issue Oct 11, 2018 · 1 comment
Closed

how to resolve openmaptiles-server cross-domain #507

HeiYanjing opened this issue Oct 11, 2018 · 1 comment

Comments

@HeiYanjing
Copy link

recently , a problem puzzled me.
I use docker toolbox to run openmaptiles-server,and mapbox develop for native. In my computer ,mapbox style.json file(url,sprite,glyphs)connect to openmaptiles-server. but in local area network. my mates cannot load map resource ,in firefox browser console , it show:
Intercepting cross source requests。The same-origin policy prohibits reading openmaptiles-server resource
I search this question.there are some solutions.

  1. in http request header add "Access-Control-Allow-Origin:*" ,but style.json unable to add header.

  2. in server's root folder add crossdomain.xml file

so in openmaptiles-server in windows docker toolbox or in ubuntu docker environment ,how can I resolve it.

@MartinMikita
Copy link
Collaborator

This is not an issue of OpenMapTiles schema.

Please, use free support channel related with OpenMapTiles instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants