Hello there,
I configured a custom AppSettings.json in order to enable Windows Authentication
"Authentication" : {
"Windows": {
"Enabled": "true"
}
}
since then, I can’t authenticate using AppTokens anymore and I have [INF] messages stating that CORS Policies execution fails [INF] CORS policy execution failed. (09b6f179)
This situation is a bit problematic as in this situation, it’s no longer possible to connect to the server using the cmdlets. After using Connect-PSUServer -ComputerName "https://myserver.domain.local
all commandlets are returning Get-UAGitStatus: Call failed with status code 401 (Unauthorized): GET https://myserver.domain.local/api/v1/GitStatus
I don’t know how you did handle the CORS within the kestrel, do you have any inputs on this ?
While IIS and appsettings.json are configured to use HTTPS it seems when I querying the headers using the API, I got information as follow:
X-Original-Proto : http
X-Original-For : 127.0.0.1:63650
I guess the X-Original-For
is due to how iis handles the webserver?
If you have any ideas, they are more than welcome I’ll keep looking around if I find anything.
Cheers !