Skip to content

Commit

Permalink
Merge c147a6d into 1a2d4cf
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodegoddess committed Nov 30, 2017
2 parents 1a2d4cf + c147a6d commit dc9447f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ class Contentfaux {
const arr = new Array(parseInt(parsed.limit)).fill(ret.items[0])
ret.items = arr

res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Headers', 'X-Contentful-User-Agent,Authorization,user-agent')

res.end(JSON.stringify(ret))
}

Expand Down

0 comments on commit dc9447f

Please sign in to comment.