Skip to content

Commit

Permalink
bypass cors
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyTakanen committed Mar 5, 2022
1 parent 28a4ac6 commit 9f606bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const init = async() => {
const server = Hapi.server({
port: process.env.PORT || 3000,
host: "0.0.0.0",
"routes": {
"cors": {
"origin": ["http://localhost:3000", "https://imap.fi"],
"credentials": true
routes: {
cors: {
origin: ["*"], // I should not have done this but I wanted this to production son badly
credentials: true
}
}
});
Expand Down

0 comments on commit 9f606bc

Please sign in to comment.