Some advanced options to allow CORS preflight requests bypass authentication, add X-Forwarded headers, etc.
X-Forwarded-For
is a mechanism to finding out the source (IP and Port) of the connection. Pinggy HTTP(S) tunnel does not implicitly add the this flag. However, user can enable X-Forwarded-For
header with x:xff
command line argument.
If you want to change the header name from X-Forwarded-For
to something custom such as Source-Address
, you can also do so using the argument: x:xff:Source-Address
.
By default, enabling key authentication / password authentication will block all unauthenticated requests to Pinggy URLs. But sometimes the CORS preflight requests are required to be sent through to enable CORS. In those cases you can use the x:passpreflight
argument.
Pinggy allows users to manipulate headers via the command line. The syntax is as follows: