Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

How to catch CORS error while loading external website in iframe.

  • Tsisy valiny
  • 1 manana an'ity olana ity
  • 3 views
more options

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??