This is a migrated thread and some comments may be shown as answers.

CORS error when trying to export map

1 Answer 227 Views
Map
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Iron
Iron
Iron
Lee asked on 02 Dec 2019, 10:20 PM

I am trying to export my openStreetMap to a PDF but the background (the map) doesn't show up. I see a bunch of errors in the console that are similar to:

Access to XMLHttpRequest at 'https://www.toolserver.org/tiles/bw-mapnik/4/4/6.png' from origin 'https://localhost:44342' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I have no control over toolserver.org so I can't tell them to add Access-Control-Allow-Origin to their header. Is there a workaround? I'm open to using another map template that offers a black and white map if anyone knows of one that won't give me the cors error. 

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 04 Dec 2019, 12:43 PM

Hello, Lee,

I have already responded to you in the other forum thread:

https://www.telerik.com/forums/background-image-wont-export-from-kendo#qweXRJ-0rEmjjZoYOXV-mw

Please avoid duplicating post. I suggest we continue the discussion in the aforementioned post.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Lee
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or