mirror of
https://github.com/fatedier/frp.git
synced 2026-04-22 00:49:10 +08:00
Support reverseproxy to dashboard with additional parts in path (#2289)
/api/ -> ../api/ in vendor.js
Support reverseproxy to dashboard with addtional parts in path.
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
return Humanize.fileSize(row.traffic_out)
|
||||
},
|
||||
fetchData() {
|
||||
fetch('/api/serverinfo', {credentials: 'include'})
|
||||
fetch('../api/serverinfo', {credentials: 'include'})
|
||||
.then(res => {
|
||||
return res.json()
|
||||
}).then(json => {
|
||||
@@ -120,7 +120,7 @@
|
||||
if (this.vhost_https_port == null || this.vhost_https_port == 0) {
|
||||
return
|
||||
} else {
|
||||
fetch('/api/proxy/https', {credentials: 'include'})
|
||||
fetch('../api/proxy/https', {credentials: 'include'})
|
||||
.then(res => {
|
||||
return res.json()
|
||||
}).then(json => {
|
||||
|
||||
Reference in New Issue
Block a user