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

235
Visualizações
How to access webdav files in the codebase in BigCommerce?

I have .js and .json files in webdav and I'm able to access them using cyberduck, however I'd like to import them in the codebase like this:

import File from "webdave/products/somefile";

I found a js package that I think will allow me to do that called webdav however I'm getting cors error when connecting to the client, and upon searching I discovered that BigCommerce does not allow api call to the store database?

Is there a way around it? basically I will be storing js files in webdav containing js objects for some product configurations, so I need those js objects in the codebase.

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

You can grab the files with an AJAX request, and use its contents within the success.

$.ajax({
    type: 'GET',
    url: '/content/filname.json',
    dataType: 'json',
    success(data) { 
        console.log(data);
    },
});
about 4 years ago · Santiago Gelvez Relatório
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