Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon products don't show up in iframes

Tags:

iframe

amazon

I'm trying to embed the amazon store via iframes into my website.

http://outdated.link

It works fine except when I click on any products, the product is not displayed.

like image 782
Emanuel Avatar asked Aug 11 '12 11:08

Emanuel


2 Answers

Adblock

Adblock needs to be disabled.

(So if you put the frame on your site - put a note telling geeks to disable it or use incognito mode)

like image 188
Sridhar Sarnobat Avatar answered Nov 18 '22 10:11

Sridhar Sarnobat


I tried out your link in Chrome and saw the following error when clicking on one of the products:

Refused to display document because display forbidden by X-Frame-Options.

The amazon product details page request returns the following response header:

X-Frame-Options: SAMEORIGIN

Based on the "X-Frame-Options response header definition", this means that "The page can only be displayed in a frame on the same origin as the page itself.". Amazon probably enforces this to prevent from Clickjacking.

like image 44
user635090 Avatar answered Nov 18 '22 09:11

user635090