From 0344e3cc0eab83d458850f45acd361da056dc975 Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Mon, 17 Jul 2023 16:18:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Https=20over=20http=20i=20post?= =?UTF-8?q?=20route=20for=20=C3=A5=20unng=C3=A5=20konflikt=20med=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sindre Kjelsrud Co-authored-by: Amalie Mansåker --- frontend/pages/api/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/api/http.ts b/frontend/pages/api/http.ts index 2b202af..09e0a0d 100644 --- a/frontend/pages/api/http.ts +++ b/frontend/pages/api/http.ts @@ -1,7 +1,7 @@ import axios from "axios"; export default function post(route: String, data?: Object) { - axios.post("http://helse-sprik.intern.dev.nav.no" + route, data, { + axios.post("https://helse-sprik.intern.dev.nav.no" + route, data, { headers: { 'Content-Type': 'application/json' }