acheong08 / ChatGPTProxy

Simple Cloudflare bypass for ChatGPT
The Unlicense
1.32k stars 326 forks source link

Fix issue that proxy may use expired authorization from request. #50

Closed flyingzhang closed 1 year ago

flyingzhang commented 1 year ago

In the proxy mode, proxy handler use the Authorization header from the client. Some clients may keep an expired authorization token which caused 401 error. (see #39)

With this change we always use the specified ACCESS_TOKEN.

acheong08 commented 1 year ago

Invalid. This breaks the purpose of this proxy. Use a valid PUID for the server and a valid access token for the client

flyingzhang commented 1 year ago

got it. That seems we recommend a reverse proxy which run accompanied with wrapper app which can change the booting access token & later access token in time.