We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c35c393 commit fbf206aCopy full SHA for fbf206a
1 file changed
src/backend/index.ts
@@ -45,11 +45,11 @@ const allowedOrigins = [
45
const options: cors.CorsOptions = {
46
origin: (origin, callback) => {
47
if (!origin) return callback(null, true);
48
-
+
49
if (allowedOrigins.includes(origin)) {
50
return callback(null, true);
51
}
52
53
callback(new Error('Not allowed by CORS'));
54
},
55
methods: 'GET, POST, DELETE',
0 commit comments