I am using the dodo payment typescript sdk in the figma extension I am currently working on, now here are two issues.
1st is dodo payment sdk take x-stainless-os in header but figma extension runs in a sandbox so this value can't be retrieved, which is causing the following error
Access to fetch at 'https://test.dodopayments.com/licenses/validate' from origin 'null' has been blocked by CORS policy: Request header field x-stainless-os is not allowed by Access-Control-Allow-Headers in preflight response.
2nd is in the documentation (https://docs.dodopayments.com/api-reference/licenses/validate-license) it's written that you can omit the bearerToken if you are using https://test.dodopayments.com/licenses/validate or in case of sdk it's client.licenses.validate but if I omit it then it throws the following error Uncaught DodoPaymentsError: The DODO_PAYMENTS_API_KEY environment variable is missing or empty; either provide it, or instantiate the DodoPayments client with an bearerToken option, like new DodoPayments({ bearerToken: 'My Bearer Token' }).
the 2nd issue is not that severe, but I would really appreciate if you can resolve the 1st issue