Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By Palele
#827329
Hello
I have a problem, I tried a lot of solutions but none works. I would like to put a subpage in the tab of processmaker

Simple code. If url is my website it's works, if it is a YT video with embed link it works. I would like to put to this tab a forum.
I tried to add .htaccess file but doesn't worked.
Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Code: Select all
 <?php
	header('X-Frame-Options: ALLOW-FROM https://google.com/');
	header('X-Frame-Options: ALLOW');
?>
<iframe src="https://google.com" target="_parent" frameborder="0" scrolling="no" width="100%" onload="this.style.height=this.contentDocument.body.scrollHeight +'px';"></iframe>
Attachments
Issue.jpg
Issue.jpg (172.22 KiB) Viewed 10489 times
By linehammer
#828854
You cannot display a lot of websites inside an iFrame. Reason being that they send an "X-Frame-Options: SAMEORIGIN" response header. This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page.

I faced the same error when displaying YouTube links. For example:
Code: Select all
https://www.youtube.com/watch?v=8WkuChVeL0s
I replaced watch?v= with embed/ so the valid link will be:
Code: Select all
https://www.youtube.com/embed/8WkuChVeL0s
It works well.

http://net-informations.com/q/mis/youtube.html

Try to apply the same rule on your case.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]