I have got a Liferay page which has Portlet. I tried to embed this page as an iframe in external site which is not in Liferay but it is giving the error in console as:
Refused to display 'https://example.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
I am using html iframe tag like below to embed it:
<iframe allowfullscreen="" frameborder="0" height="400" src="https://example.com" style="border:0" width="500"></iframe>
Following this thread I tried putting "&output=embed" at end of the URL but it didn't work: Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
I am not sure whether I need to change setting or any code on Liferay side to make it work. Any idea what is causing this and how can I fix this?