php-cross-domain-proxy
php-cross-domain-proxy copied to clipboard
PHP Proxy for Cross Domain Requests
1. https://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive 2. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
The redirects were broken as there were multiple csurl parameters pasted together with '?' in the given location. This was causing "too many redirects" errors. (The $_SERVER['REQUEST_URI'] variable contains the...
When there is a `Content-Type` header in the request, My PHP environment will set both `CONTENT_TYPE` and `HTTP_CONTENT_TYPE` to the `$_SERVER` variable. also `Content-Length` or any Content-* header. https://github.com/softius/php-cross-domain-proxy/blob/be3713962b05902324ce8503bc36379cbbb1fd22/proxy.php#L67 This...
Currently fatal errors such as invalid domains simply return 200 OK. To mitigate that one could, e.g., throw 502 Bad Gateway instead. Change: ```php // retrieve response (headers and content)...
since the purpose of this script is to bypass CORS check, the response should contain CORS headers. I've tried the script on my php server and requests from javascript didn't...
It seems that `$_POST` and `http_build_query` are not symmetrical. Currently, `$_POST` is tried first when reading the original POST request: ```php } elseif ('POST' == $request_method) { $request_params = $_POST;...
any redirect causes a "TOO_MANY_REDIRECTS" error. Please see #30 for a solution.
Currently the script replaces the data being sent with nothing :'( I need to POST a form with a File input but the current script doesn't allow it
Hi there, I'm new to CORS using PHP and found this repo very helpful. In reading the documentation, I saw a minor typo 'indentionally' and first thought it was a...
The method of splitting the response data by a **double \r\n** starting at [line 175](https://github.com/softius/php-cross-domain-proxy/blob/master/proxy.php#L175) to get the response-headers and data in one request is by far not ideal. Since...