Skip to content

Commit 0781580

Browse files
Add Vary: Accept header
1 parent 7d18773 commit 0781580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/create-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ function initHeaders (app) {
120120
app.use(corsSettings)
121121

122122
app.use((req, res, next) => {
123-
// Set X-Powered-By
124123
res.set('X-Powered-By', 'solid-server')
124+
res.set('Vary', 'Accept') // Cors lib adds Vary: Origin automatically
125125
// Set default Allow methods
126126
res.set('Allow', 'OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE')
127127
next()

0 commit comments

Comments
 (0)