in html5 local. img1 img2 I wrote this page locally. When I open it in Safari, i" /> in html5 local. img1 img2 I wrote this page locally. When I open it in Safari, i" /> in html5 local. img1 img2 I wrote this page locally. When I open it in Safari, i"/>

Why can the X-Frame-Options not hide the iframe web in Chrome (117.0.5938.88), but it works in Safari?

41 Views Asked by At
<iframe src="https://developer.mozilla.org/" scrolling="no"></iframe>

in html5 local.

img1

img2

I wrote this page locally. When I open it in Safari, it behaves as expected – it does not appear in the frame, and the console shows an error

Refused to display 'https://developer.mozilla.org/zh-CN/' in a frame because it set 'X-Frame-Options' to 'DENY.'

However, in Chrome, it does appear. How can I achieve the same result in Chrome?

Expecting: Chrome and Safari behave the same。

0

There are 0 best solutions below