corns – Obtaining the cookie setting in the authorization header during the cross origin request?

Code of the request page:

Application entered by proxy:

GET / secrets HTTP / 1.1
User Agent: Mozilla / 5.0 (x11; x86_64; rv: 52.0) Gecko / 20100101
Accept: * / *
Accept-Language: en-US, en; q = 0.5
Accept-Encoding: gzip, deflate
Authorization: carrier
Cookie: token1 = njcndkjcnk, token2 = cknsdknk
Connection: close

I want to send a request like this

Authorization: Bearer = token2-Value

Assuming that the target website is open in another tab and that I want my code to send the request so as to add the value token2 of cookies to the authorization header when requesting?