I have two websites example.com & example.tech I want to embed a page from example.tech into example.com
I have embedded it using iframe but the problem is height of the iframe is not auto. I don't want to show the iframe scrollbar.
So I tried solution from here: How to set iframe height:auto in HTML5 but I got this error:
Uncaught DOMException: Blocked a frame with origin
"https://example.com" from accessing a cross-origin frame.
Again I found this SecurityError: Blocked a frame with origin from accessing a cross-origin frame but it is not working for me.
Help me to come out of this situation. Your help will be appreciated!