chrome-simply-proxy
chrome-simply-proxy copied to clipboard
Issue with redirect
Generally the Plugin work well, but, I do have the following issue.
How to reproduce:
-
Create a file
index.php
and put this inside:var_dump($_SERVER['REQUEST_URI']);
-
run
php -S 127.0.0.1:7777/index.php
on cli to run this side with the build-in php webserver -
Open the Address
127.0.0.1:7777
in your browser you'll see: -
create an entry for simple-proxy extension:
-
enter test.com in your browser. You'll see:
The issue
The issue is, that the kind of redirect crash the internal PHP-Variable $_SERVER['REQUIRE_URI']
. Instead showing /
(means, only the uri-PATH, it shows the whole URI including the protocol and domainname.
Why is this a problem? If you - for example - redirect to a Page which use this $_SERVER['REQUIRE_URI'], the webpage won't be available or work in any way.
Info that might help:
see: https://www.php.net/manual/en/reserved.variables.server.php#121469
@Riant do you have any Idea about that? Would love to use your extension