Skip to content

Commit dd34640

Browse files
committed
webApi preserve /hello
1 parent d14f6c2 commit dd34640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory-b2c/tutorial-single-page-app-webapi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ To change the settings in the SPA:
105105
1. In the [active-directory-b2c-javascript-msal-singlepageapp][github-js-spa] project you downloaded or cloned in the previous tutorial, open the *apiConfig.js* file inside the *JavaScriptSPA* folder.
106106
1. Configure the sample with the URI for the *demo.read* scope you created earlier and the URL of the web API.
107107
1. In the `apiConfig` definition, replace the `b2cScopes` value with the full URI for the *demo.read* scope (the **Scope** value you recorded earlier).
108-
1. Change the `webApi` value to the redirect URI you added when you registered the web API application in an earlier step.
108+
1. Change the domain in the `webApi` value to the redirect URI you added when you registered the web API application in an earlier step. Because the API is accessible at the `/hello` endpoint, leave */hello* in the URI.
109109
110110
The `apiConfig` definition should look similar to the following code block, but with your B2C tenant's name in the place of `<your-tenant-name>`:
111111

112112
```javascript
113113
// The current application coordinates were pre-registered in a B2C tenant.
114114
const apiConfig = {
115115
b2cScopes: ["https://<your-tenant-name>.onmicrosoft.com/api/demo.read"],
116-
webApi: "http://localhost:5000/"
116+
webApi: "http://localhost:5000/hello"
117117
};
118118
```
119119

0 commit comments

Comments
 (0)