server.js aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2235372c64
commit
c07984c506
@ -105,7 +105,7 @@ const corsOptions = {
|
||||
callback(null, true);
|
||||
} else {
|
||||
database.system.domains((domains) => {
|
||||
if (domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) {
|
||||
if (config.domain == origin.replace(/:\d*$/g, "") || domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) {
|
||||
callback(null, true);
|
||||
} else {
|
||||
callback("Origin not allowed: " + origin);
|
||||
|
Loading…
Reference in New Issue
Block a user