Error while automating the authentication process


I am trying to automate the authentication process to generate the access token using the Playwright library in Python. When I set the headless=True I am getting below error.

Browser console: Upstox Login v1.110.1-SNAPSHOT(PROD)
Browser console: [.WebGL-0000182401CE3F00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
Browser console: Access to fetch at’ from origin ‘https://login.upstox.comhas been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

Request to help with the workaround.

Thank you!

Upstox API does not support or recommend the automation of access token generation in light of SEBI and regulatory guidelines. Users must manually log in once daily by adhering to the specified login procedures.

Thank you.

Alright. Thank you for the response!