Skip to content

Commit

Permalink
fix origin
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle authored Sep 21, 2023
1 parent 0095392 commit c1d2aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/newsfeed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const app = express();
app.use((req, res, next) => {
const environment = process.env.NODE_ENV || "development";
let origin =
environment === "development" ? "*" : "https://www.binarytree.dev";
environment === "development" ? "*" : "https://binarytree.dev";
res.header("Access-Control-Allow-Origin", origin);
next();
});
Expand Down

0 comments on commit c1d2aaf

Please sign in to comment.