Trying to do a POST redirect in a Worker

Hello, I am trying to recreate a POST redirect in a worker. So the user POST data to a worker and I want to redirect them to another page. But when the response gets to the browser the location header is removed and the redirect isn't working. There is a current implementation of this functionality working in another backend server but I wanted to move it to a worker. I just wanted to know if anyone knows for sure if this will or won't work in a worker? I've been spinning my wheels the last couple of days to try and get it working.
2 Replies
Cyb3r-Jak3
Cyb3r-Jak38mo ago
What redirect code are you using? It should be a 307 to keep the request method
sotb
sotb8mo ago
I was using 302 but I'll try with 307. Thanks!