Skip to content

Commit cdf5034

Browse files
touch ups
1 parent 1488cd7 commit cdf5034

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

articles/active-directory-b2c/authorization-code-flow.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,10 @@ To try the HTTP requests in this article:
3535

3636
## Redirect URI setup required for single-page apps
3737

38-
The authorization code flow for single page applications requires some additional setup. Follow the instructions for [creating your single-page application](tutorial-register-spa.md) to correctly mark your redirect URI as enabled for CORS. To update an existing redirect URI to enable CORS, open the manifest editor and set the `type` field for your redirect URI to `spa` in the `replyUrlsWithType` section. You can also click on the redirect URI in the "Web" section of the Authentication tab, and select the URIs you want to migrate to using the authorization code flow.
38+
The authorization code flow for single page applications requires some additional setup. Follow the instructions for [creating your single-page application](tutorial-register-spa.md) to correctly mark your redirect URI as enabled for CORS. To update an existing redirect URI to enable CORS, you can click on the migrate prompt in the "Web" section of the **App registration**'s **Authentication** tab. Alternatively, you can open the **App registrations manifest editor** and set the `type` field for your redirect URI to `spa` in the `replyUrlsWithType` section.
3939

4040
The `spa` redirect type is backwards compatible with the implicit flow. Apps currently using the implicit flow to get tokens can move to the `spa` redirect URI type without issues and continue using the implicit flow.
4141

42-
If you attempt to use the authorization code flow and see this error:
43-
44-
`access to XMLHttpRequest at 'https://login.microsoftonline.com/common/v2.0/oauth2/token' from origin 'yourApp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.`
45-
46-
Then you need to visit your app registration and update the redirect URI for your app to type `spa`.
47-
4842
## 1. Get an authorization code
4943
The authorization code flow begins with the client directing the user to the `/authorize` endpoint. This is the interactive part of the flow, where the user takes action. In this request, the client indicates in the `scope` parameter the permissions that it needs to acquire from the user. The following three examples (with line breaks for readability) each use a different user flow.
5044

0 commit comments

Comments
 (0)