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