Client Credentials authorization with Azure Active directory and Swagger
问题 Need to get the authorization token to access my app running on localhost. I query the AAD token endpoint for the token from the Swagger OAuth2 client in UseSwaggerUi3. I get the CORS error that endpoint is not allowing the cross origin requests from my localhost. How can I fix this? [Edit] I'm able to get the token if I send a POST request to the same endpoint using Fiddler. 回答1: You can't use client credentials flow from the front-end. Firstly because your secret is visible to anyone who