Problems with jQuery load | CORS

0

I'm trying to "catch" some information contained on a third party page directly on a page I'm currently coding.

I'm using jquery to do this because I want only one or two information that is on this page, in case I want to just get the price and product name that is on the americanas.com website and upload directly to my site. For when they update it, on my site it updates automatically without me needing coding all the time.

I'm trying to use this line:

$( "#conteudo" ).load( "http://www.americanas.com/exemplo-produto #preco" );

I am still a student, but for what I know, the error is due to CORS due to cross-origin resource sharing because it gives the following error:

Failed to load link : In 'Access-Control-Allow-Origin' header is present on the requested resource . Origin ' link ' is therefore not allowed access.

As far as I know, I can not solve this problem, as far as I know, I would have to ask them to "include me" in the page that I am trying to order?

Is there any other option for me to succeed in this case?

Thank you!

    
asked by anonymous 13.12.2017 / 14:24

1 answer

0

This happens because the page you are trying to get information has a lock type to avoid this action so you can not access it from an external server.

    
13.12.2017 / 20:45