Home S3 - Redirect to a static website using a POST request
Reply: 0

S3 - Redirect to a static website using a POST request

user4747 Published in September 21, 2018, 8:42 am

I am hosting a static website on S3 and this is my form that redirects to this website. I don't need to get any of the submitted parameters, just a simple redirect.

        <form action="http://website.com" method="POST"  >
          // my code

After submitting the form, I am redirected to the static website but I had this error:

405 Method Not Allowed
Code: MethodNotAllowed
Message: The specified method is not allowed against this resource.
Method: POST
ResourceType: OBJECT
RequestId: 1EEFE221F692910D
HostId: obKOVc3LTyhc4NUdrs+S7DXOOv6FZYmdWEXOgCo3UVdb6beiI/aP8bQxihaMUenYTJyE+thrCaQ=

My S3 bucket CORS configuration is the following:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">

While it seems that my CORS configuration are right, I don't still find from where comes the error message (405 Method Not Allowed).

share|improve this question

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.375512 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO