fix cors
This commit is contained in:
@@ -87,7 +87,11 @@ app.use(passport.session());
|
|||||||
if (env.NODE_ENV === "production") {
|
if (env.NODE_ENV === "production") {
|
||||||
app.use(
|
app.use(
|
||||||
cors({
|
cors({
|
||||||
origin: "blog.alexav.gg",
|
origin: [
|
||||||
|
"https://blog.alexav.gg",
|
||||||
|
"https://alexav.gg",
|
||||||
|
"http://localhost:5173",
|
||||||
|
],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user