Skip to content

Commit

Permalink
deactivated cors
Browse files Browse the repository at this point in the history
  • Loading branch information
caitoor committed May 6, 2024
1 parent a7ab967 commit bde099f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ console.log(`frontendUrl: ${frontendUrl}`);
const corsOptions = {
origin: frontendUrl,
};

app.use(cors(corsOptions));
// this leads to CORS issues:
// app.use(cors(corsOptions));
app.use(cors());
app.use(express.json());

app.get('/constellation', async (req, res) => {
Expand Down

0 comments on commit bde099f

Please sign in to comment.