Skip to content

Commit

Permalink
change content type of xhr request after saml connection is made
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaguilar committed Apr 25, 2024
1 parent c38baf4 commit c5b2ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/manifests/samlconnecter.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var statusElement = document.getElementById("status");
var xhr = new XMLHttpRequest();
xhr.open("POST", "http://localhost:18080/connecter?token={{ .Token }}");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader("Content-Type", "text/plain");

xhr.addEventListener("load", function () {
if (this.status === 200) {
Expand Down

0 comments on commit c5b2ebb

Please sign in to comment.