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.