From 6384ca9491deae674c8c354181236a5b8922c4db Mon Sep 17 00:00:00 2001 From: "Krothu@gmail.com" Date: Tue, 19 Mar 2024 09:59:34 +0000 Subject: [PATCH] Add return headers --- DoSomethingService/Controllers/v1/SomethingController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DoSomethingService/Controllers/v1/SomethingController.cs b/DoSomethingService/Controllers/v1/SomethingController.cs index 2b10421..fd009ae 100644 --- a/DoSomethingService/Controllers/v1/SomethingController.cs +++ b/DoSomethingService/Controllers/v1/SomethingController.cs @@ -47,6 +47,8 @@ public IActionResult Get() /// What happened private ContentResult ConvertToJsonObject(string input) { + Response.Headers.Add("Access-Control-Allow-Origin", "https://web.hakabo.com"); + Response.Headers.Add("x-peters-test", "https://web.hakabo.com"); var jsonString = "{\"key\":\""+input+"\"}"; //string jsonString = $"{\"key\":\"{input}\"}"; return new ContentResult