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

Production problem #6

Open
itexicoCarlos opened this issue Aug 6, 2019 · 3 comments · May be fixed by #21
Open

Production problem #6

itexicoCarlos opened this issue Aug 6, 2019 · 3 comments · May be fixed by #21
Labels
bug Something isn't working

Comments

@itexicoCarlos
Copy link

itexicoCarlos commented Aug 6, 2019

When do the deploy into server, the map doesn't show the points, it's only in production using react.

I don't know why in localhost working but en host dont

@JohnWickham
Copy link

Seeing this same issue. Just to add some information: the console produces lots of errors about refusing to load resources from Apple’s MapKit CDN because of CORS.

XMLHttpRequest cannot load https://cdn.apple-mapkit.com/ti/csr/1.x.x/res/manifest-0.fb due to access control checks. https://cdn.apple-mapkit.com/ti/csr/1.x.x/res/manifest-0.fb

Looking at the response from a request to https://cdn.apple-mapkit.com/ti/csr/1.x.x/res/manifest-0.fb, it seems as though Apple sets the Access-Control-Allow-Origin header to *, * (two wildcard values are not allowed).

This is slightly outside my expertise, and I'm not sure if these access control issues are even related to annotations not being visible.

@JohnWickham
Copy link

Following up on this: turns out these problems were caused entirely by deploying to Netlify. Can’t say exactly why, but this issue doesn’t happen on other production hosts. I’m betting that this is also @itexicoCarlos’s problem.

@tonyduanesmith
Copy link
Owner

Depending on your production setup I hadn't realised until recently that child.props.name may get stripped out in the production build. I'll look into an alternative solution to stop this in the future.

@tonyduanesmith tonyduanesmith added the bug Something isn't working label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants