Edit report at https://bugs.php.net/bug.php?id=74126&edit=1
ID: 74126 Updated by: [email protected] Reported by: alexhacker64 at gmail dot com Summary: Ajax SSL php.net -> secure.php.net preflight redirect -Status: Open +Status: Closed Type: Bug Package: Website problem Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: There is no more secure.php.net, nor are there any mirrors anymore, so this ticket is obsolete. Previous Comments: ------------------------------------------------------------------------ [2019-05-20 12:14:11] [email protected] I've requested to do a redirection to main canonical URL instead here https://bugs.php.net/bug.php?id=78040 Once that gets done, this will be resolved with a simple redirection before user even enters the secure.php.net documentation site. ------------------------------------------------------------------------ [2018-08-20 09:08:32] [email protected] There's no mirror for secure.php.net at https://master.php.net/manage/mirrors.php but there's a mirror for php.net which runs at the same host as secure.php.net. I'm not sure how but it seems that the script decides to use php.net as the mirror (maybe at https://github.com/php/web-php/blob/c68a31e5/include/site.inc#L531?). We can try to add mirror secure.php.net but I'm scared to break something else. We can also special case it in the code. ------------------------------------------------------------------------ [2018-08-20 08:35:49] [email protected] The AJAX request is at https://github.com/php/web-php/blob/c68a31e5/js/search.js#L263. The URL is domain-less but there's <base href> set at https://github.com/php/web-php/blob/8014ec80/include/header.inc#L105 Which sets it to https://php.net at https://secure.php.net. ------------------------------------------------------------------------ [2018-08-18 15:21:45] [email protected] 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. ------------------------------------------------------------------------ [2017-02-19 08:07:25] alexhacker64 at gmail dot com Description: ------------ https://secure.php.net does ajax requests to https://php.net including, but not limited to: https://php.net/js/search-index.php?lang=... https://php.net/manual/vote-note.php?id=...&page=...&vote=up https://php.net/manual/vote-note.php?id=...&page=...&vote=down which in preflight (OPTIONS) return redirect to corresponding https://secure.php.net/... addresses, which causes the following errors in browser: XMLHttpRequest cannot load https://php.net/.... Response for preflight is invalid (redirect) Tested in latest Chrome and Firefox browsers. Expected result: ---------------- Voting up and down on https://secure.php.net/ 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74126&edit=1 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
