Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
fix: allow pdf access without csrf token
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatank committed Sep 5, 2024
1 parent fdceed5 commit dd38ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ui/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function redirectCsrfToken(req: NextRequest): URL | undefined {
requestUrl.pathname.startsWith("/healthcheck") ||
requestUrl.pathname.startsWith("/_next") ||
requestUrl.pathname.match(
/\.(webmanifest|js|css|png|jpg|jpeg|svg|gif|ico|json|woff|woff2|ttf|eot|otf)$/
/\.(webmanifest|js|css|png|jpg|jpeg|svg|gif|ico|json|woff|woff2|ttf|eot|otf|pdf)$/
)
) {
return undefined;
Expand Down

0 comments on commit dd38ff9

Please sign in to comment.