[GH-ISSUE #2971] 访问网站cors error #2371

Closed
opened 2026-05-05 13:31:34 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @759855630 on GitHub (Jun 7, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2971

Bug Description

通过frp将内网网站穿透出来,使用公网ip访问,出现跨域问题,导致无法正常访问网站

frpc Version

0.37.1

frps Version

0.41.0

System Architecture

linux/amd64

Configurations

[ssh7777]
type = tcp
local_ip = 127.0.0.1
local_port = 7777
remote_port = 8888

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @759855630 on GitHub (Jun 7, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2971 ### Bug Description 通过frp将内网网站穿透出来,使用公网ip访问,出现跨域问题,导致无法正常访问网站 ### frpc Version 0.37.1 ### frps Version 0.41.0 ### System Architecture linux/amd64 ### Configurations [ssh7777] type = tcp local_ip = 127.0.0.1 local_port = 7777 remote_port = 8888 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@759855630 commented on GitHub (Jun 7, 2022):

4142434dc1fbff35bf43b87192529b8

<!-- gh-comment-id:1148136911 --> @759855630 commented on GitHub (Jun 7, 2022): ![4142434dc1fbff35bf43b87192529b8](https://user-images.githubusercontent.com/45380727/172285891-8867eb9d-5e8e-4acc-b0ae-7de527297e63.png)
Author
Owner

@Becods commented on GitHub (Jun 7, 2022):

服务端或者浏览器跨域配置问题

尝试加Access-Control-Allow-Origin

<!-- gh-comment-id:1149060687 --> @Becods commented on GitHub (Jun 7, 2022): 服务端或者浏览器跨域配置问题 尝试加`Access-Control-Allow-Origin`头
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: github-starred/frp#2371
No description provided.