[BUG] fetchNoCors allow handling redirects manually

Author: XriukCreated Sep 4, 2026Updated Sep 7, 2026
Labelsbug

Bug Report Description

I am trying to make a request by following https://www.npmjs.com/package/psn-api adapted to fetchNoCors, this leads me to this url:

https://ca.account.sony.com/api/authz/v3/oauth/authorize?access_type=offline&client_id=09515159-7237-4370-9b40-3806e67c0891&redirect_uri=com.scee.psxandroid.scecompcall%3A%2F%2Fredirect&response_type=code&scope=psn%3Amobile.v2.core+psn%3Aclientapp

Which is fetched with the following parameters:

javascript
{
	headers: {
		Cookie: `npsso=...`
	},
	redirect: 'manual'
}

Which requires me to manually handle the redirect.

However the Python backend throws aoihttp.client_exceptions.NonHttpUrlRedirectClientError as the uri com.scee.psxandroid.scecompcall://redirect is indeed not http.

Is it possible to forward the flag redirect: 'manual' to aoihttp?

Source: SteamDeckHomebrew/decky-loader