justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.93k stars 618 forks source link

chatGPT Error when using Proxy #967

Open PinnacleCoders opened 1 year ago

PinnacleCoders commented 1 year ago

chatGPT is not working through proxy when performing SSL Inspection. Works fine without SSL Inspection. With SSL Inspection enabled, OpenAI is sending a 403 Forbidden error (verified in browser HAR file).

Anyone aware of OpenAI restricting chatGPT functionality based on user source IP Address? Or why Proxy with SSL Inspection would not be allowed?

PinnacleCoders commented 1 year ago

@justcoding121 @honfika could you please suggest. This is the response I get

HTTP/1.1 403 Forbidden
Date: Mon, 03 Jul 2023 10:39:38 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: max-age=15
Expires: Mon, 03 Jul 2023 10:39:53 GMT
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
Cross-Origin-Opener-Policy: same-origin
Referrer-Policy: same-origin
X-Robots-Tag: nofollow
Server: cloudflare
CF-RAY: 7e0e817a49582e11-BOM
Content-Encoding: br
alt-svc: h3=":443"; ma=86400

Following is the exception I get in Titanium web proxy. "A client is making HTTP request via external proxy to one of the listening ports of this proxy chat.openai.com:443"

Since the proxy lib is passing all the headers and body of https request as it is. How if the server able to identify its coming via a proxy?