Skip to content

Commit 029aab7

Browse files
committed
Add Origin header in our code
1 parent 5fab28b commit 029aab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/create-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ function initHeaders (app) {
122122
app.use((req, res, next) => {
123123
res.set('X-Powered-By', 'solid-server')
124124

125-
// Cors lib adds Vary: Origin automatically
126-
res.set('Vary', 'Accept, Authorization')
125+
// Cors lib adds Vary: Origin automatically, but inreliably
126+
res.set('Vary', 'Accept, Authorization, Origin')
127127

128128
// Set default Allow methods
129129
res.set('Allow', 'OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE')

0 commit comments

Comments
 (0)