Skip to content

Commit

Permalink
Update src/lib/middlewares/referrerPolicy.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
fengmk2 and coderabbitai[bot] authored Jan 17, 2025
1 parent 4e221d9 commit 2179396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/middlewares/referrerPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default (options: SecurityConfig['referrerPolicy']) => {

const policy = opts.value;
if (!ALLOWED_POLICIES_ENUM.includes(policy)) {
throw new Error('"' + policy + '" is not available."');
throw new Error('"' + policy + '" is not available.');
}

ctx.set('referrer-policy', policy);
Expand Down

0 comments on commit 2179396

Please sign in to comment.