REST API http get/post .. try to control ha from a foreign system

Hello there.
In former versions of home assistant (currently using core-2022.4.1) i was able to call ha from the outside (windows box) to do stuff. For example smth like this:

Powershell

$hash = @{ target = "xxx"; source = "PC"}; $JSON = $hash | convertto-json;
Invoke-WebRequest -uri "http://192.168.11.149:8123/api/services" -Method POST -Body $JSON -Headers $hashAuth

Curl

.\curl -X POST http://gbnet.mooo.com:8123/api/services/media_player/select_source -H 'Authorization: Bearer ey..' -H "Content-Type: application/json" -d '{"target": "xxx", "source":"PC"}'

Latter one was controlling my avr - using command line to do so.

The problem now is i cannot post anything to ha anymore. Have a look at the attached screenshots.

it is not a authorization issue. Any idea?

Check your HA logs.
Anytime I receive those 400 errors, it’s due to HA refusing the connection for whathever reason, that it’ll log.

sadly nothing in the logs … at least not in those i can see on the webfrontend.