We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
I just installed version 1.0.3 of edge-csrf and it seems the excludePathPrefixes config option is missing in the packaged dist folder.
1.0.3
edge-csrf
excludePathPrefixes
dist
As a workaround, one can manually skip the invocation of csrfProtect in middleware.ts:
csrfProtect
middleware.ts
export async function middleware(req: NextRequest) { const res = NextResponse.next(); if (!req.nextUrl.pathname.startsWith('/_next/')) { csrfProtect(req, res); }
The text was updated successfully, but these errors were encountered:
Thanks for the heads up! Try v1.0.4: https://www.npmjs.com/package/edge-csrf/v/1.0.4
Sorry, something went wrong.
@flohil Did v1.0.4 fix the issue?
Hey @amorey! Version 1.0.4 now includes the excludePathPrefixes config option in the dist folder. Thank you for the fast fix!
No branches or pull requests
Hi!
I just installed version
1.0.3
ofedge-csrf
and it seems theexcludePathPrefixes
config option is missing in the packageddist
folder.As a workaround, one can manually skip the invocation of
csrfProtect
inmiddleware.ts
:The text was updated successfully, but these errors were encountered: