0

I have a iframe on my website, it displays the amazon's site in it. When the user click any on any of the product there, it redirects to the amazon site in new tab, I am trying to read the price of that specific product on which user clicks.

I tried to read the price of the product on which user clicks

Ahmad Ali
  • 126
  • 7
  • 1
    Nope. Security reasons. – James Apr 12 '23 at 19:37
  • Cross-site scripting can be dangerous, so browsers only allow it if the site you want to script has allowed your site to do this. Amazon is not going to say yes :) – Dave S Apr 12 '23 at 20:28
  • Does this answer your question? [How does the 'Access-Control-Allow-Origin' header work?](https://stackoverflow.com/questions/10636611/how-does-the-access-control-allow-origin-header-work) – Dave S Apr 12 '23 at 20:44

0 Answers0