Skip to content

Commit

Permalink
add vary headers to access-protected responses
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Jan 10, 2025
1 parent 22c2b61 commit dada2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/server/utils/locals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function _perms(check:number,req :Request, res :Response, next :NextFunction){
if(!scene) throw new BadRequestError("no scene parameter in this request");
if(check < 0 || AccessTypes.length <= check) throw new InternalError(`Bad permission level : ${check}`);

res.append("Cache-Control", "private");
res.set("Vary", "Cookie, Authorization");

if(isAdministrator) return next();

Expand Down

0 comments on commit dada2a9

Please sign in to comment.