Removed Vanilla Form Submission 69/65469/1
authorParker Berberian <pberberian@iol.unh.edu>
Wed, 28 Nov 2018 18:38:45 +0000 (13:38 -0500)
committerParker Berberian <pberberian@iol.unh.edu>
Wed, 28 Nov 2018 18:38:45 +0000 (13:38 -0500)
commitd7e2fc7062a761e62335073bec6306c78f1471cc
tree2c92850b2c8d3103e93565e70ee439f610fb1b3e
parentb02aa2535c7b7beacbc2d7d24d8522fa596afeee
Removed Vanilla Form Submission

On google chrome, using vanilla html forms, eg:
document.getElementById("Form_id").submit();
does not properly set the CSRF header from the cookies.
This results in 403 unauthorized errors in chrome when doing certain things.

This is possibly an issue to do with how chrome handles iframes differently from firefox.

To fix, we replaced basic forms with serialized XMLHttpRequests,
which are more common in this codebase anyway.

Change-Id: I93e92cd326c8bba47408b66a95d9d5d806c154f6
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
dashboard/src/templates/dashboard/landing.html
dashboard/src/templates/resource/steps/meta_info.html
dashboard/src/templates/resource/steps/pod_definition.html
dashboard/src/templates/workflow/confirm.html