Page 1 of 1

iframes blocked

Posted: Thu Jan 13, 2022 12:18 pm
by musicscore
Hi there.

When I use an iframe on a page the iframe is blocked.
Searched for days now but do not find the cause.

In the pas I had now problems using iframe.

Please help.

Re: iframes blocked

Posted: Thu Jan 13, 2022 3:12 pm
by velden
I'd suggest to provide some more information.

What do you mean by blocked?
Is this something in cmsms or happens on the front side?
Perhaps you can share an url where the problem can be seen.

Re: iframes blocked

Posted: Thu Jan 13, 2022 3:31 pm
by musicscore
Thanks for your response.
Here is the url : https://infowebs.nl/index.php?page=klantenportaal

This is the url I use in the iframe : https://factuur.infowebs.nl/public/client/login

T.I.A.

Re: iframes blocked

Posted: Thu Jan 13, 2022 3:47 pm
by DIGI3
Take a look at your console, your CORS security policy is blocking them, among other things:

Code: Select all

Refused to frame 'https://factuur.infowebs.nl/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
The content security policy is set outside of CMSMS, usually in your .htaccess file or at the server level. You may need to ask your host or server admin if you're unsure.

Re: iframes blocked

Posted: Thu Jan 13, 2022 4:29 pm
by musicscore
Thank you for the quick response.
I tryed a test.html with the iframe and that worked.