|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74126 Ajax SSL -> preflight redirect
Submitted: 2017-02-19 08:07 UTC Modified: 2018-08-18 15:21 UTC
Avg. Score:4.5 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: alexhacker64 at gmail dot com Assigned:
Status: Open Package: Website problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-02-19 08:07 UTC] alexhacker64 at gmail dot com
------------ does ajax requests to including, but not limited to:

which in preflight (OPTIONS) return redirect to corresponding addresses, which causes the following errors in browser:

XMLHttpRequest cannot load Response for preflight is invalid (redirect)

Tested in latest Chrome and Firefox browsers.

Expected result:
Voting up and down on works, "dynamic" search works.

Actual result:
Voting up and down causes "Something went wrong :(" with described error in dev console, search does something only after submitting the query.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-18 15:21 UTC]
I'm struggling to find any instance of XMLHttpRequest anywhere in the site's codebase.  Could you reference a specific page this happens on, perhaps with reproduce steps?

It's also possible someone's removed the XHR usage since this bug was originally posted.
 [2018-08-20 08:35 UTC]
The AJAX request is at The URL is domain-less but there's <base href> set at Which sets it to at
 [2018-08-20 09:08 UTC]
There's no mirror for at but there's a mirror for which runs at the same host as I'm not sure how but it seems that the script decides to use as the mirror (maybe at

We can try to add mirror but I'm scared to break something else. We can also special case it in the code.
 [2019-05-20 12:14 UTC]
I've requested to do a redirection to main canonical URL instead here

Once that gets done, this will be resolved with a simple redirection before user even enters the documentation site.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jul 28 10:01:24 2021 UTC