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

201
Visualizações
Pretend that file exists on a server safari

So I have a webpage that seems to not work because a sound file is missing on the server.

If I check the console I get [Error] failed to load resource: the server responded with a status of 404 () (webpage.com/media/sound.m4a, line 0)

PS: i'm on safari 14.1.2 (14611.3.10.1.7) and macOS mojave.

If I inspect the page source I see that the entire media directory is non-existent, so I would need to pretend that the media directory exists too.

Maybe a command in the js console?

Now to clear this up I do not want to add a file to the server. I just want to trick safari into thinking that this file is on this server, and when the file is requested, to use a file that I choose.

about 4 years ago · Santiago Trujillo
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