A
A
Andrey Frolov2016-12-01 12:38:43
JavaScript
Andrey Frolov, 2016-12-01 12:38:43

How to catch javascript error from CHROME console?

Namely, the error that appears when loading into an iframe of a third-party site.

Refused to display 'http://example.com/page' in a frame because it set 'X-Frame-Options' to 'deny'.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_ _, 2016-12-01
@AMar4enko

No way. This is a browser security policy limitation, not a script error.

A
Alexey Semenyuk, 2017-02-16
@wonchoe

why catch it? What's the point? this is a security policy, you cannot display the frame of another on some site (it’s true on many) if the goal is to bypass and display the frame, this can be done using the extension to chrome, there is no other way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question