I am configuring Website Hosting for a public client application with restricted resource restrictions in Developer Console. In the Content Security Policy section, I want to allow OpenStreetMap tiles for react-leaflet. When I enter https://*.tile.openstreetmap.org, I get the error: “Domain must use lowercase letters, digits, and hyphens (hyphens cannot be at the start or end), or the domain is using a reserved keyword.” I also tried *.tile.openstreetmap.org and tile.openstreetmap.org. Is there a specific CSP format required here, or is this a validation limitation/bug in Developer Console?
I just want to add a map to my React app; adding an iframe doesn’t help either. I am restricted to only using the OSDK code repository and will not be using the Palantir Foundry Map or workshop.
Is it possible?
Hello Prateek,
It should be enough to add https://tile.openstreetmap.org to the CSP. Let me know if this works for you.
With kindest regards
Thanks a lot for the response, Nikita. I tried that, but I think that I may be doing something wrong here.
I keep getting this message:
“Domain must use lowercase letters, digits, and hyphens (hyphens cannot be at the start or end), or the domain is using a reserved keyword. Try again or contact Palantir support for further assistance.”
So I am not sure what to put there. I am new to Palantir, so I am not sure how to request the website domain.