I need to make a reactjs app that has some whole webpages inside it. I'm using iframes for this. When some link that goes to a different domain is clicked the connection is denied. I understand this is intended behavior but is there any way to somehow disable links that would be denied so that when they are clicked nothing happens instead of showing an error?
You can disable links in iframe like that.
iframe
{
pointer-events: none;
}