I am trying to generate an embed token for a report by calling below endpoint but it thorws me CORS issue.
Failed to load https://api.powerbi.com/myorg/groups//reports//GenerateToken: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 403.
Is there any setting in power bi dashboard or enable CORS and set allowed origins?