No 'Access-Control-Allow-Origin' header is present on the requested resource.

400 views
Skip to first unread message

Alexey

unread,
Jun 28, 2018, 10:37:55 AM6/28/18
to MapTiler Community
Hello!

I faced to issue with android web view of the maptiler's server. On my desktop chrome browse everything works fine but when I visit the same link (load the same map source) on my mobile chrome (67.0.3396.87) it shows me the "Failed to load https://maps.tilehosting.com/data/v3/10/615/344.pbf?key=ajWzVuKJEPrA9ej6Dq3N: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://178.208.82.80:5937' is therefore not allowed access. The response had HTTP status code 403."

For now it's https with self-sined sertificate, but also I tried the HTTP protocol version. The behavior is the same in both cases.

I use my own java spring-boot server with "Acces-Control-Allow-Origin" : "*".

But for some reason ther Acces-Control-Allow-Origin appears only in the desktop's response header case. JS and Java code are totally the same!

I can't figure out why it's so? Is there some restrictions on the maptiler server for mobiles or what? 

Please, really need help if I wouldn't solve this problem I'll have to choose another map server...

Alexey

unread,
Jun 28, 2018, 10:46:39 AM6/28/18
to MapTiler Community



четверг, 28 июня 2018 г., 17:37:55 UTC+3 пользователь Alexey написал:

MapTiler

unread,
Jun 29, 2018, 7:51:46 AM6/29/18
to mapt...@googlegroups.com
Helle Alexey,

I'm forwarding your report to our development team.

We will get back to you as soon as possible.

In the meantime, could you please send me the email address that you used for the purchase of the MapTiler's server?

Thank you.


Best regards,
Martin

--
You received this message because you are subscribed to the Google Groups "MapTiler Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maptiler+u...@googlegroups.com.
To post to this group, send email to mapt...@googlegroups.com.
Visit this group at https://groups.google.com/group/maptiler.
For more options, visit https://groups.google.com/d/optout.

MapTiler

unread,
Jun 29, 2018, 8:12:14 AM6/29/18
to mapt...@googlegroups.com
Hello Alexey,

unfortunately, we are not able to reproduce the issue, could you please send a screenshot of the Request headers that are sent along with the request to our servers? It should be easily visible in the "Network" tab (on the second screenshot).


Best regards,
Martin

Andrew

unread,
Aug 5, 2018, 8:22:10 PM8/5/18
to MapTiler Community
Hi,

I'm also getting a similar problem:
"Failed to load https://cloud.maptiler.com/api/sprites/XXXXXXXXXXXXXXX.png: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access."
"Failed to load https://cloud.maptiler.com/api/sprites/XXXXXXXXXXXXXXX.json: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access."

The bit in the style is:
  "sources": {
    "composite": {
      "type": "vector",
    }
  },
  "glyphs": "mapbox://fonts/sitewisely/{fontstack}/{range}.pbf",


Is it s a problem with Cloudfront?  Or are we pointing at the wrong host?

-Andrew

MapTiler

unread,
Aug 6, 2018, 7:22:08 AM8/6/18
to mapt...@googlegroups.com
Hello Andrew,

your sprite url is wrong (the domain is completely wrong). I'm not sure where you get this address.

The easiest way is to upload your style to Cloud and sprites will be done automatically.


Best regards,
Martin
--
MapTiler Team
Twitter: @klokantech

Message has been deleted

Lara

unread,
Aug 22, 2018, 12:18:51 PM8/22/18
to MapTiler Community
Hello,

I only have this problem when I connect with a device to a specific network. if I connect it to other networks it works well for me. What can it be?

Failed to load https://maps.tilehosting.com/data/v3/5/15/11.pbf?key={key}: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://xxxxxx.com' is therefore not allowed access. The response had HTTP status code 403.

thanks in advance.
Lara.

MapTiler

unread,
Sep 17, 2018, 5:50:01 AM9/17/18
to MapTiler User Group
Hello Lara,

it looks like more as a problem with the network... therefore we are unable to tell what further it can be other than a problem with network.

Have a nice day.

Eliska 
--
MapTiler Team
Twitter: @klokantech

--
Reply all
Reply to author
Forward
0 new messages