is this possible to get authorisation code by JavaScript??

is this possible to get authorisation code by JavaScript??

I am using third party tool which will interact with Box enterprise account and there is no configuration are available to configure redirect URL.

For this, first time when my app will try to access account it will be redirected to Box page. Box finally redirects user to my redirected URL after acceptin user credentials. This redirected URL will have a authorization code.

is this possible to get authorization code by Javascript??

Below is how i am trying to authorising:

https://account.box.com/api/oauth2/authorize?response_type=code&client_id=33232323&redirect_uri=https:0.0.0.0&state=authentication

And below how i will get code:

https://0.0.0.0/?state=authentication&code=a88pdfff18kxsrr9bt