mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3342] CORS error #2676
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2676
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cancundeyingzi on GitHub (Mar 5, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3342
Bug Description
http网页中使用https资源,浏览器会报错
Access to XMLHttpRequest at 'xxx' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.上述http网页和https资源均使用frp穿透,
192.168局域网没有此问题,Cloudflare Tunnels的http/https网页也没此问题
也就是说,在调用frp穿透的https资源时,只有frp穿透的http网页报错
frpc Version
0.47
frps Version
0.46
System Architecture
win11
Configurations
[main]
type = http
local_ip = 1
local_port = 5244
custom_domains = c
use_encryption=true
use_compression=true
[w]
type = https
local_ip = 1
local_port = 443
custom_domains = c
use_encryption=true
use_compression=true
proxy_protocol_version = v2
Logs
No response
Steps to reproduce
...
Affected area
@Becods commented on GitHub (Mar 7, 2023):
非frp的问题
自行在网页服务器添加
Access-Control-Allow-Origin头@github-actions[bot] commented on GitHub (Apr 7, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.