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

107
Visualizações
AJAX request over http defaulting to https

I'm trying to make an AJAX POST request from a Chrome extension to an AWS app I have running. The request itself is specified over http (as opposed to https) and I thought I had added the proper CORS headers to my AWS app (below):

app.use(function(req, res, next) {
  res.header('Access-Control-Allow-Origin', '*');
  res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
  next();
});

However, the POST request times out from the extension, with the simple error "connection timed out." How can I fix this?

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

0

As it works with HTTP and not over HTTPS, are you sure you opened the HTTPS port you are using in the security groups inbound rules? Inbound rules HTTP example

And also check that you have HTTPS permissions in your manifest file:

"permissions": ["https://*/*",    "http://*/*"],
about 4 years ago · Santiago Trujillo 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