mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-07 18:48:39 +00:00
Remove comment rubish
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ export default async function createApp(vite) {
|
|||||||
if(!origin || origin === 'null' || allowedOrigins.includes(origin) || herokuRegex.test(origin) || (isLocalEnvironment && localNetworkRegex.test(origin))) {
|
if(!origin || origin === 'null' || allowedOrigins.includes(origin) || herokuRegex.test(origin) || (isLocalEnvironment && localNetworkRegex.test(origin))) {
|
||||||
callback(null, true);
|
callback(null, true);
|
||||||
} else {
|
} else {
|
||||||
callback(new Error('Not allowed by CORS, if you think this is an error, please contact us - Skidoosh'));
|
callback(new Error('Not allowed by CORS, if you think this is an error, please contact us'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods : ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
methods : ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
|
|||||||
Reference in New Issue
Block a user