Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement'

后端 未结 1 1151
生来不讨喜
生来不讨喜 2020-12-06 22:35

i\'m trying to make my own \"website checker\" for specific needs and i\'m having problem accessing the iFrame..

Uncaught SecurityError: Failed to rea

相关标签:
1条回答
  • 2020-12-06 22:48

    That's a normal security measure used by all the browsers. You can't access elements or frames that have a different origin, that would be a huge security flaw. Hence, the browser blocks all the scripts that try to do that kind of stuff. To perform any action inside a frame its content must have the same origin.

    For further information take look at this answer of mine.

    0 讨论(0)
提交回复
热议问题