mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
fix: prohibit cross-origin access (#462)
This commit is contained in:

committed by
GitHub

parent
259a4e1307
commit
5757021e87
@ -42,10 +42,10 @@ export function getCountryRegionData() {
|
||||
}
|
||||
|
||||
export function initServerUrl() {
|
||||
const hostname = window.location.hostname;
|
||||
if (hostname === "localhost") {
|
||||
ServerUrl = `http://${hostname}:8000`;
|
||||
}
|
||||
//const hostname = window.location.hostname;
|
||||
// if (hostname === "localhost") {
|
||||
// ServerUrl = `http://${hostname}:8000`;
|
||||
// }
|
||||
}
|
||||
|
||||
export function isLocalhost() {
|
||||
|
Reference in New Issue
Block a user