|
|
|
|
281
|
The response had HTTP status code 403.
|
281
|
The response had HTTP status code 403.
|
282
|
```
|
282
|
```
|
283
|
|
283
|
|
284
|
-To fix this, you’ll need to login to https://api.stormpath.com, navigate to Applications > My Application, and modify the **Authorized Origin URIs** to include `http://localhost:8100`.
|
|
|
|
|
284
|
+To fix this, open your Spring Boot application's `src/main/resources/application.properties` and add the following line. This enables cross-origin resource sharing (CORS) from both the browser and the mobile client.
|
285
|
|
285
|
|
286
|
-At this point, you should see a login screen when you run `ionic serve`.
|
|
|
|
|
286
|
+```
|
|
|
287
|
+stormpath.web.cors.allowed.originUris = http://localhost:8100,file://
|
|
|
288
|
+```
|
|
|
289
|
+
|
|
|
290
|
+Restart Spring Boot and your Ionic app. You should see a login screen when you run `ionic serve`.
|
287
|
|
291
|
|
288
|
![Stormpath Login for Ionic](./static/ionic-login.png)
|
292
|
![Stormpath Login for Ionic](./static/ionic-login.png)
|
289
|
|
293
|
|