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

200
Views
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
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!