balls mcgee
balls mcgee
CC#
Created by balls mcgee on 10/24/2023 in #help
❔ 415 error from HttpClient put to a controller using FromBody
(await _client.PutAsync("foo", new StringContent(5.ToString()))).EnsureSuccessStatusCode();
(await _client.PutAsync("foo", new StringContent(5.ToString()))).EnsureSuccessStatusCode();
public async Task Put([FromBody]int bar)
public async Task Put([FromBody]int bar)
error 415 (Unsupported Media Type).
2 replies
CC#
Created by balls mcgee on 3/31/2023 in #help
❔ Redirect all unauthenticated requests for an SPA to OAuth
I have an Angular SPA app. I don't want them to be able to load any of the assets on this server without a validated JWT token from IdentityServer. How can I redirect before anything is served?
4 replies
CC#
Created by balls mcgee on 10/21/2022 in #help
How to set connection strings for remote server
I'm uploading my project for the first time to another server accessible from the net. I set my secret like dotnet user-secrets set ConnectionStrings:YourDatabaseAlias ... according to Microsoft's documentation, but I cannot find a single thing about how to set those secrets in my remote server.
12 replies