|  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: 2021-08-04 12:00 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: cmb (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alexhacker64 at gmail dot com
New email:
PHP Version: OS:


 [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.
 [2021-08-04 12:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-08-04 12:00 UTC]
There is no more, nor are there any mirrors
anymore, so this ticket is obsolete.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 07:01:28 2024 UTC