I want to submit an HTML form to a server which accepts the form data in the queryString
along with Authorization header. The server then sends back a HTML document after performing some computations on the data and the Authorization header.
Restrictions
- I cannot use JavaScript features like AJAX or fetch since the form submission gets a HTML response which needs to be opened on the browser.
- The form also needs to be of the method
GET
for internal reasons.
Response
The response received is a HTML document which has JavaScript in it which has sessionStorage.setItem('data', 'value')
in it, which is scoped to the origin. The form exists in the parent.example.com origin, whrereas the received HTML document is in child.example.com origin. So, we Must go to the child.example.com page like a HTML form redirection.