It's originally a JSP form page, do post under same domain:
<form action="/dataHandler" method="post" enctype="multipart/form-data">
after the data post finished browser will get a 303 see other code. do the redirection to a different domain.
Now I need to use JavaScript to do the post. It's been posted successfully but in the redirection, it get a 500 Server Error.
Compare to the Original get. It seems missing the Cookie, Cache-Control, Content-Encoding, Content-Type, X-FRAME-OPTIONS fields and have a additional origin, Set-Cookie fields.
But i found out JS can't touch the redirection on this page, so how should I deal with the Error?