Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
No se puede acceder a la API de Google Dynamic Links del lado del cliente

Quiero usar el lado del cliente de Google Dynamic Links APi actualmente cuando intento obtener datos de la API a través de localhost, recibo un error:

 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://books.google.com/books?bibkeys=ISBN:0451526538&jscmd=viewapi. (Reason: CORS header 'Access-Control-Allow-Origin' missing). Status code: 200.

aquí está mi código

 await fetch(`https://books.google.com/books?bibkeys=ISBN:0451526538&jscmd=viewapi`, { method: 'GET', mode: 'cors', headers: { 'Access-Control-Allow-Origin':'*', 'Content-Type': 'application/json' }, });

Ahora quiero acceder a esa API del lado del cliente como dice la documentación, pero no puedo obtener los datos debido a la política de origen cruzado.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!