Forums

Embed pages from own site not allowed to open

My website https://forevermore.pythonanywhere.com/ is a map with markers for certain locations when you click the marker, a page should open displaying historical images of that location

when i click the link inside the marker in google chrome it says: forevermore.pythonanywhere.com has refused the connection. when i click the link inside the marker in firefox it says: Firefox Can’t Open This Page

To protect your security, forevermore.pythonanywhere.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

after this i am able to open the page in a seperate window.

However this does not look professional and i want my site to work in all browers. what do i have to do for my site to allow the display of the embedded page.

thank you for your help!

kind regards,

You need to set a security policy to allow your site to be embedded in an iframe: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors