130
Views
2
Comments
Solved
I am using an external url in iframe, buts its getting blocked on screen
Question

I am using an external url in iframe in my enterprise app, buts its getting blocked on screen while same url is working in my personnel env.


can anybody help me here ?


Error_csp_1.jpeg
UserImage.jpg
vikas sharma
Champion
Solution

Hi,

As you can see in the error "Content is blocked by CSP". So in lifetime CSP is enabled, to load this URL either you have to disable the CSP or you need to update the URL in CSP. Then only OutSystems will allow to load this URL.

Login in Lifetime, click on Environments and then for required environment you need to click on "more security settings" link. It will open new page for you of CSP. You can enable disable it as per you requirements.

regards.

2022-07-19 05-52-05
Raghvendra Raghav

thanks for the help Vikas


we didnt disable the CSP as its not a good practice.

we have added url in child-src under the security setting of environment and it works for us.

self

external URL (for e.g. https://google.com)

gap

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