Fixed cors problems with main site
This commit is contained in:
+2
-1
@@ -14,7 +14,8 @@ app.use(
|
|||||||
if (
|
if (
|
||||||
!origin ||
|
!origin ||
|
||||||
origin.includes("localhost") ||
|
origin.includes("localhost") ||
|
||||||
origin.includes("127.0.0.1")
|
origin.includes("127.0.0.1") ||
|
||||||
|
origin === "https://dev-run.netlify.app"
|
||||||
) {
|
) {
|
||||||
callback(null, true);
|
callback(null, true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user