Commit 6d6253fe authored by Magnus Holm Brunbjerg's avatar Magnus Holm Brunbjerg
Browse files

Cors and content type

parent e14d37d3
Pipeline #12289 failed with stages
...@@ -26,6 +26,14 @@ app.use((req, res, next) => { ...@@ -26,6 +26,14 @@ app.use((req, res, next) => {
next() next()
}) })
app.use((req, res, next) => {
res.set({
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json'
})
next()
})
/* /*
* *
* Api endpoint stuff * Api endpoint stuff
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment