How can I add a Browser Extension as a trusted origin

Hello,

I’m creating a custom browser extension which I want to use OKTA as its sign on, I’ve used various tools in this process such as the SPA guide and the sign on widget, even resorting to trying to code everything myself with some OKTA APIs but I seem to reach the same issue each time with trusted origins.

I receive this when I try to login from the token endpoint:

{
“error”: “invalid_request”,
“error_description”: “Browser requests to the token endpoint must be made from one of the registered Trusted Origins.”
}

with the extension being my origin like so:

chrome-extension://apfthsfhdkgmndbkgddeanfbmggjhhgf

Any idea on how I can add this to my trusted origins? or if there is a work around I have completely missed.

Thank you!