-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I’m facing an issue with implementing a Content Security Policy (CSP) using the @next-safe/middleware library with strictDynamic function in Next.js / Sitecore XM Cloud JSS with Next.js application hosted on Vercel.
with this function : strictDynamic({ fallbackScriptSrc: directives['script-src'] }))
Error: Your function was stopped as it did not return an initial response within 25s
"@next-safe/middleware": "^0.10.0",
"next": "^14.1.0",
I’d appreciate any insights or suggestions from the community on:
- Possible reasons for this timeout error on Vercel.
- Workarounds or configurations that might resolve the issue.
- Similar experiences with strictDynamic or other middleware-related functions on Vercel.
Thank you in advance for your help!
Metadata
Metadata
Assignees
Labels
No labels