Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
owalid committed Oct 26, 2023
1 parent 19818ba commit 1fac5e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ import scoresWithoutAnomaly2 from '../static/data/scores-without-anomaly-2'
const app = express()

// Require API routes
app.use(cors())
app.use(cors(
{
origin: 'https://www.adaptaviz.fr',
optionsSuccessStatus: 200
},
{
origin: 'https://adaptaviz.fr',
optionsSuccessStatus: 200
}
))
app.use(express.json());
app.use(helmet())

Expand Down

0 comments on commit 1fac5e1

Please sign in to comment.