Creamov
Creamov

Reputation: 181

Firefox 301 redirect for non-URL image src. Bug or feature?

You can do the trick like so:

  1. Open any website without SSL in Firefox, then open console
  2. Execute this code: var img = new Image(); img.src = 'something';
  3. You'll get 301 redirect at 'http://example.com/something' (not just image URL, but document URL will be changed).

So, is it a bug or feature?

P.S. instead of example.com can be any website.

Upvotes: 3

Views: 428

Answers (2)

stevethecollier
stevethecollier

Reputation: 1034

I had to go through my extensions and disable some "search me" malware add-on. Try disabling your add-ons one by one to find if one of them is the culprit

Upvotes: 1

Time to Travel
Time to Travel

Reputation: 132

Did you tried something like 'http://example.com'? Because 'example.com' could also be an folder on your server or client

Upvotes: 1

Related Questions