74
Views
2
Comments
Solved
[OutSystems Maps Sample] Error rendering map when CSP is enable
outsystems-maps-sample
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hi Team,

I have an issue when I enable CSP on Lifetime, the map doesn't render on the page and it was returned a lot of errors on the browser related to CSP:

Did someone have this issue and know how to solve it?

Thanks

Luís

2018-12-10 12-16-21
Goncalo Duarte Almeida
Solution

Hi @Luís Cardoso 

For your specific case, try inside the CPS search for Style-src and add the domain fonts.googleapis.com, like image below.

You can also check more info regarding CSP here:

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy?_gl=1*169b0df*_ga*MTIwMjQ1MDM5MC4xNjI2NzExNTU3*_ga_ZD4DTMHWR2*MTYyOTk4MzM0MC4zLjEuMTYyOTk4NDYxNi41Nw..

Regards

Gonçalo Almeida

2021-01-04 08-13-48
Toto
 
MVP

Hi Luis,


You must add some pages that needed by the googlemaps on the CSP.

Access it from Lifetime - "Environment" - "More Security Settings"



For list that you must add and where, check the service center - monitoring - error, search message "content security policy" (there is some page that need to added)


Thanks

2018-12-10 12-16-21
Goncalo Duarte Almeida
Solution

Hi @Luís Cardoso 

For your specific case, try inside the CPS search for Style-src and add the domain fonts.googleapis.com, like image below.

You can also check more info regarding CSP here:

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Secure_the_Applications/Apply_Content_Security_Policy?_gl=1*169b0df*_ga*MTIwMjQ1MDM5MC4xNjI2NzExNTU3*_ga_ZD4DTMHWR2*MTYyOTk4MzM0MC4zLjEuMTYyOTk4NDYxNi41Nw..

Regards

Gonçalo Almeida

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.