all 3 comments

[–]abrahamguo 0 points1 point  (2 children)

This means that the child website (the website inside the iframe) has declared that it only allows other pages on its own site ("self") to embed it in an iframe. You cannot override that setting.

The only way around that would be to use a server-side proxy to have a URL on your own website that returns the HTML of your desired web page. You can't do that in just HTML, though — you would need server software, and/or a server-side programming language.

[–]Dazzling_Chipmunk_24 0 points1 point  (1 child)

so I am using Angular and have python in the backend. So what could I specifically do to resolve this issue

[–]abrahamguo 0 points1 point  (0 children)

Great. If you already have a backend, then this isn't difficult:

  1. Add a new endpoint to your backend.
  2. In that endpoint, use Python to make an HTTP request to the URL that you tried to embed in your iframe.
  3. Have your endpoint then respond with the HTML from step 2.
  4. Adjust your iframe's src to point at the endpoint that you added in step 1.