From c5b2ebb4fcd42137d9908f6acc799e19922244bd Mon Sep 17 00:00:00 2001 From: isaaguilar Date: Thu, 25 Apr 2024 08:27:12 -0700 Subject: [PATCH] change content type of xhr request after saml connection is made --- pkg/api/manifests/samlconnecter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/manifests/samlconnecter.html b/pkg/api/manifests/samlconnecter.html index 238f8f2..fb6af35 100644 --- a/pkg/api/manifests/samlconnecter.html +++ b/pkg/api/manifests/samlconnecter.html @@ -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) {