Closed
Bug 1428278
Opened 8 years ago
Closed 8 years ago
redirected with relative url to http on a https page
Categories
(Firefox :: General, enhancement)
Tracking
()
RESOLVED
INVALID
People
(Reporter: neoedmund, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
1. when visit https://xxxx/
the response set http code 302 and Location:/aaaa in http header.
What happened?
==============
firefox redirect to http://xxxx/aaaa
What should have happened?
==========================
firefox redirect to https://xxxx/aaaa
Is there anything else we should know?
======================================
according to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location?utm_source=mozilla&utm_medium=devtools-netmonitor&utm_campaign=default
Location:<url> can be
A relative (to the request URL) or absolute URL.
Product: Mozilla Developer Network → Firefox
Version: unspecified → 58 Branch
Comment 1•8 years ago
|
||
Can you provide a URL for the site you are testing?
I use curl [1] to see the exact headers returned by my server, such as "curl -I https://developer.mozilla.org/", which shows my header as "Location: https://developer.mozilla.org/en-US/". A similar tool will confirm that your web server is sending the a relative URL in the location header.
[1] https://curl.haxx.se/
Flags: needinfo?(neoedmund)
(In reply to John Whitlock [:jwhitlock] from comment #1)
Hi, I just made some research, and confirmed that relative URL in Location handled correctly by Firefox.
Sorry that the issue seems happened in somewhere server-side layer of nginx or application-server(jetty) which rewrite the Location.
It take time to dig into, that I'd rather using absolute URL in my program.
Since the Firefox is nothing wrong. I close the issue. Thank you.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(neoedmund)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•