-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can't do anything more on the server. If you perform a Let's say that you have a page A which fetches some information client-side from resource B ( Such "non-navigation request causing navigation on redirect", could also be used for malicious purposes. When responding to some requests a malicious API could, instead of responding with real/fake data, cause a navigation to a phising page. If you want to cause a navigation, then the best way, would be returining a special response with URL that is understood by the client (JS on the website) as requiring navigation. You can also do this by instructing |
Beta Was this translation helpful? Give feedback.
You can't do anything more on the server. If you perform a
fetch()
or XHR then the request is handled separately from document navigation. If a redirect is received in response to such request then only the request is redirected.Let's say that you have a page A which fetches some information client-side from resource B (
http://b.b/b
). It's an old page and uses HTTP instead of HTTPS. Then someone managing B decides to upgrade to HTTPS and always issues redirects to the same resource, but using HTTPS (https://b.b/b
) when asked over HTTP.Now, what will happen is that when a user loads A it makes a request to B that gets redirected by the server to use HTTPS, they will still be on A which w…