Requests to my worker fail when typing in https or www but work just fine without typing in https or www

Hello, there’s something weird going on with one of my workers!

When I open it in another tab I am met with the following error (when typing in https://www.aboutrock2.submarine.workers.dev/ or www.aboutrock2.submarine.workers.dev)

However, typing it in like aboutrock2.submarine.workers.dev will cause it to load just fine!

I mean it’s the same link either way so why would typing it in with HTTPS (and should work just fine) but apparently in this case it ain’t!

This is strange! Why is this happening? And how do I fix it?

Not strange, your workers.dev domain is aboutrock2.submarine.workers.dev not www.aboutrock2.submarine.workers.dev. You cannot get another level down in the workers.dev zone. It matches <worker>.<user>.workers.dev and there is no changing that.

1 Like

Oh so the URL has to be precise otherwise it fails?

Yes. If you had a custom domain you could do something like example.com and www.example.com.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.