[GH-ISSUE #4093] [bug]: Open the PORT 3100 prompt in the management panel or browser, indicating that it has been blocked by CORS #1464

Open
opened 2026-03-16 20:24:55 +03:00 by kerem · 1 comment
Owner

Originally created by @lvreninfo on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4093

Originally assigned to: @balub on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Open the PORT 3100 prompt in the management panel or browser, indicating that it has been blocked by CORS,As shown in the figure:
image

According to the documents provided by hoppswitch, including the search and understanding of issues, the problem cannot be solved. Could you please help me? Thank you

Steps to reproduce

This is a self hosted accessible test address:

Hoppscotch frontend:https://hoppscotch-frontend.mackoala.com
Hoppscotch backend:https://hoppscotch-backend.mackoala.com
Hoppscotch admin: https://hoppscotch-admin.mackoala.com

My. env configuration file is shown in the figure:

env配置文件截图1
env配置文件截图2

Running migrations:

参考:https://github.com/hoppscotch/hoppscotch/issues/3696#issuecomment-2045490622
postgreSQL数据迁移完成截图
image

【hoppscotch-backend】Service startup screenshot:

backend安装截图1
backend安装截图2

【hoppscotch-frontend】Service startup screenshot:

frontend安装截图

【hoppscotch-admin】Service startup screenshot:

image

Environment

Production

Version

Self-hosted

Originally created by @lvreninfo on GitHub (May 29, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4093 Originally assigned to: @balub on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Open the PORT 3100 prompt in the management panel or browser, indicating that it has been blocked by CORS,As shown in the figure: ![image](https://github.com/hoppscotch/hoppscotch/assets/18662270/a2b257d3-6694-43b0-a7b4-ef45858c12e8) According to the documents provided by hoppswitch, including the search and understanding of issues, the problem cannot be solved. Could you please help me? Thank you ### Steps to reproduce ### This is a self hosted accessible test address: Hoppscotch frontend:[https://hoppscotch-frontend.mackoala.com](https://hoppscotch-frontend.mackoala.com) Hoppscotch backend:[https://hoppscotch-backend.mackoala.com](https://hoppscotch-backend.mackoala.com) Hoppscotch admin: [https://hoppscotch-admin.mackoala.com](https://hoppscotch-admin.mackoala.com) ### My. env configuration file is shown in the figure: ![env配置文件截图1](https://github.com/hoppscotch/hoppscotch/assets/18662270/47c1d7b7-b998-4586-93ad-9d7f404fa762) ![env配置文件截图2](https://github.com/hoppscotch/hoppscotch/assets/18662270/b5d63071-a22f-4c24-be49-51409019afe6) ### Running migrations: 参考:[https://github.com/hoppscotch/hoppscotch/issues/3696#issuecomment-2045490622](https://github.com/hoppscotch/hoppscotch/issues/3696#issuecomment-2045490622) ![postgreSQL数据迁移完成截图](https://github.com/hoppscotch/hoppscotch/assets/18662270/d0750f99-3bfc-40a3-8dea-0f5ef7e574a2) ![image](https://github.com/hoppscotch/hoppscotch/assets/18662270/697afe34-59ff-482a-a38d-a6764ab18fc7) ### 【hoppscotch-backend】Service startup screenshot: ![backend安装截图1](https://github.com/hoppscotch/hoppscotch/assets/18662270/9f5feebd-b000-4633-a5b3-f6255ea0d7ca) ![backend安装截图2](https://github.com/hoppscotch/hoppscotch/assets/18662270/d3f9072f-c5e7-4f35-8d44-d94edba8f225) ### 【hoppscotch-frontend】Service startup screenshot: ![frontend安装截图](https://github.com/hoppscotch/hoppscotch/assets/18662270/2b6f67d2-3715-44ed-b1cb-9f642bf695d0) ### 【hoppscotch-admin】Service startup screenshot: ![image](https://github.com/hoppscotch/hoppscotch/assets/18662270/5659fdd8-0f7e-4511-bbf5-f3fe74fa9275) ### Environment Production ### Version Self-hosted
Author
Owner

@balub commented on GitHub (Jun 13, 2024):

Hey @lvreninfo, could you try removing the double quotes enclosing the values for the environment variables in the .env file? similar to how the values for the VITE_BASE_URL are.
Adding the relevant URL to the WHITELISTED_ORIGINS env variable should be enough to prevent CORS issues so could you trying remove the double quotes everywhere and trying again?

<!-- gh-comment-id:2164414178 --> @balub commented on GitHub (Jun 13, 2024): Hey @lvreninfo, could you try removing the double quotes enclosing the values for the environment variables in the `.env` file? similar to how the values for the `VITE_BASE_URL` are. Adding the relevant URL to the `WHITELISTED_ORIGINS` env variable should be enough to prevent CORS issues so could you trying remove the double quotes everywhere and trying again?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1464
No description provided.