expose icon indicating copy to clipboard operation
expose copied to clipboard

Rework http/s protocol

Open ghostzero opened this issue 4 years ago • 0 comments

In the current version, the host header is set incorrectly, which causes applications to incorrectly determine the correct host.

This PR fixes the error and sends the application the correct current header.

Also, two new X- headers are introduced to recognize what the exposed host + proto was, so that the proxy browser can determines the correct hostname, port and schema.

  • X-Expose-Host: <hostname>:<port>
  • X-Expose-Proto: <schema>

Furthermore a DSN support was introduced. So that also exposed HTTPS connections can be resolved.

Other changes in this pr:

  • Changed the X-Expose-Request-ID to sha1 so it contains a hex string with a more entrophy uniqueid.

--

I created this PR to share insights. This requires a major release and i think, there are few more places that should be reworked before a major release.

ghostzero avatar Jan 01 '21 15:01 ghostzero