Worker Site: POST is not a valid request method & How to Password Protect?

I am trying to convert a basic Shoutcast Title Changing html page I have and make it a Workers Site.

2 issues I am encountering:

  1. Site is up fine, just the POST function fails with the error:
    POST is not a valid request method
    It works fine hosted on a regular server.
    Is it a matter of my Worker not being set right or is POST not “doable”?

  2. How do I password protect it for multiple users (once I have it working)?
    Normally I’d use htpasswd and htaccess but adding them to my Worker Site doesn’t create a login prompt.

Thanks for any light you can shine on this for me

  1. I’m just guessing here, but aren’t Workers Sites (This is from Wrangler, right?) supposed to be static? If so, then I wouldn’t expect it to accept a POST request.
  2. I’d use Access to password protect anything on a site. It’s free for up to 50 users.

If I cant use POST then no need to worry about using Access etc… (I would need it for over 150 users anyway)
I just keep using servers for this task in that case.
Shame as trying to go full serverless.

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