Skip to content

Commit

Permalink
Add Vary to request header for Origin
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Nov 7, 2024
1 parent 7e64c64 commit bb3d63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const updateGalnetNews = require('./lib/cron-tasks/galnet-news')
ctx.set('Access-Control-Allow-Origin', ctx.request.header.origin)
ctx.set('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
ctx.set('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
ctx.set('Vary', 'Origin')
return next()
})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ardent-api",
"version": "4.2.1",
"version": "4.2.2",
"description": "Ardent API provides access to data submitted to EDDN",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit bb3d63b

Please sign in to comment.