Skip to content

Commit 5fab28b

Browse files
Add Vary: Authorization as well
1 parent 0781580 commit 5fab28b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/create-app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ function initHeaders (app) {
121121

122122
app.use((req, res, next) => {
123123
res.set('X-Powered-By', 'solid-server')
124-
res.set('Vary', 'Accept') // Cors lib adds Vary: Origin automatically
124+
125+
// Cors lib adds Vary: Origin automatically
126+
res.set('Vary', 'Accept, Authorization')
127+
125128
// Set default Allow methods
126129
res.set('Allow', 'OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE')
127130
next()

0 commit comments

Comments
 (0)