© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•4mo ago
RayProud

No user-agent header in OpenNext on CF Workers

Hey!

I've just migrated my app from next-on-pages to OpenNext and stumbled upon an interesting thing. All requests coming from the backend part of the app don't have the User-Agent header.

Only discovered that it's a problem for me when I enabled a rule on the Cloudflare side to cut off all requests with no user-agent (helps against some bots). I found out that the next-on-pages apps still work fine, but the OpenNext ones are crushing.

Does anyone know if that's a OpenNext specific behaviour or it's rather something that comes with Cloudflare Workers (meaning that next-on-pages work on Cloudflare Pages, so they might forward the user-agent header under the hood).
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Pocketbase on CF Workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Can I use WaitUntil in OpenNext running on Workers?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago
Does CF provide user agent parsing for device type for Workers?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Azure OpenAI on CF workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago