usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.48k stars 576 forks source link

Preview Website - Status 400: Invalid character in header name: 'X-ForProto -Proto' #1259

Open dustbro opened 1 month ago

dustbro commented 1 month ago

Describe the bug When I click on the "PREVIEW" button for a website, it returns: 400 Bad Request It is not a valid request!

In the Cyberpanel Error Log, I see: Status 400: Invalid character in header name: 'X-ForProto -Proto'

To Reproduce What steps did you take when the issue occurred?

  1. Click on the "Manage" tab for a website.
  2. Click on "PREVIEW".
  3. a new Tab opens with a 400 error.

Expected behavior a preview of the website should open.

Operating system: Ubuntu 22.04 LTS

CyberPanel version: Version: 2.3 Build: 5 Commit: 83fa3a0aa8dfecae7912d0f17b7ea655210f3bba

Additional context My webserver is sitting behind Nginx Proxy Manager https://nginxproxymanager.com/