© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•14mo ago•
4 replies
Gerbuuun

Use wildcard domain with worker (assets)

I'm trying to make subdomains work with a wildcard.
Because worker domains do not support wildcards, I'm just doing it with a DNS entry.
This did not work with assets (CORS error) so I added a route rule that adds
access-control-allow-origin: *
access-control-allow-origin: *
to the response headers.
Now, when I go to the subdomain, the assets are loaded but any other request to the domain still return
http 522
http 522
responses.
The domain without the wildcard works just fine.

What am I supposed to do to make subdomains work?
The project I'm trying to deploy is a nuxt project.
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

Static Assets on zone with domain wildcard
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago
Wildcard DNS + Worker + R2 custom domain
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
16mo ago
Impossible to use Durable object with Assets worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
worker static assets
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago