How to catch CORS error while loading external website in iframe.
Loading external website in an iframe is getting blocked because of x-frame-options in response headers. I want to listen to the error from iframe and show some alert to the user. So is there any way to catch the exception/error while loading external content in an iframe??
Loading external website in an iframe is getting blocked because of x-frame-options in response headers. I want to listen to the error from iframe and show some alert to the user. So is there any way to catch the exception/error while loading external content in an iframe??