Hello,
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 ‘https://service.upstox.com/login/open/v6/auth/1fa/otp/generate’ from origin ‘https://login.upstox.com’ has 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!