Skip to content

Commit

Permalink
Add return headers
Browse files Browse the repository at this point in the history
  • Loading branch information
KrothuTheCoder committed Mar 19, 2024
1 parent 2af2799 commit 6384ca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DoSomethingService/Controllers/v1/SomethingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public IActionResult Get()
/// <returns>What happened</returns>
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
Expand Down

0 comments on commit 6384ca9

Please sign in to comment.