Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

147
Visualizações
Google Dynamic Links API cann't accessed client-side

I want to use the Google Dynamic Links APi client-side currently when I try to fetch data from the API through localhost I receive 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.

here is my code

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'
      },
    });

Now I want to access that API client-side as the the documentation says but I can not fetch the data because of the cross-origin-policy

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda