Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guides/deployment/microservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ npm i @sap-cloud-sdk/resilience --workspace bookstore

### Approuter

Add [approuter configuration](../deployment/to-cf#add-app-router) using the command:
Add approuter configuration using the command:

```shell
cds add approuter
Expand Down
20 changes: 2 additions & 18 deletions guides/deployment/to-cf.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,7 @@ cds add mta

[Learn more about MTA-based deployment.](https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/d04fc0e2ad894545aebfd7126384307c.html?locale=en-US){.learn-more}

### 4. App Router as Gateway { #add-app-router}

The _App Router_ acts as a single point-of-entry gateway to route requests to. In particular, it ensures user login and authentication in combination with XSUAA.

Two deployment options are available:

- **Managed App Router**: for SAP Build Work Zone, the Managed App Router provided by SAP Fiori Launchpad is available.
- **Custom App Router**: for custom scenarios without SAP Fiori Launchpad, the App Router needs to be deployed along with your application.
In this case, use the following command to enhance the application configuration:

```sh
cds add approuter
```

[Learn more about the SAP BTP Application Router.](https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/01c5f9ba7d6847aaaf069d153b981b51.html?locale=en-US){.learn-more}

### 5. User Interfaces { #add-ui }
### 4. User Interfaces { #add-ui }

#### Option A: SAP Cloud Portal

Expand All @@ -208,7 +192,7 @@ For **single-tenant** applications, you can use the new [SAP BTP Application Fro
cds add app-front
```

### 6. Optional: Multitenancy { #add-multitenancy }
### 5. Optional: Multitenancy { #add-multitenancy }

To enable multitenancy for production, run the following command:

Expand Down
2 changes: 1 addition & 1 deletion guides/multitenancy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ Now, open or refresh <http://localhost:4004/#Books-manage> again as _alice_ and

In order to get your multitenant application deployed, follow this excerpt from the [deployment to CF](../deployment/to-cf) and [deployment to Kyma](../deployment/to-kyma) guides.

Once: Add SAP HANA Cloud, XSUAA, and [App Router](../deployment/to-cf#add-app-router) configuration. The App Router acts as a single point-of-entry gateway to route requests to. In particular, it ensures user login and authentication in combination with XSUAA.
Once: Add SAP HANA Cloud and XSUAA for authentications and authorization:

```sh
cds add hana,xsuaa
Expand Down
6 changes: 2 additions & 4 deletions node.js/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ If a CSRF token is cached, it can potentially be reused in multiple requests, de

#### Using App Router

The _App Router_ is configured to require a _CSRF_ token by default for all protected routes and all HTTP requests methods except _HEAD_ and _GET_. Thus, by adding the _App Router_ as described in the [Deployment Guide: Using App Router as Gateway](../guides/deployment/to-cf#add-app-router), endpoints are CSRF protected.
The _App Router_ is configured to require a _CSRF_ token by default for all protected routes and all HTTP requests methods except _HEAD_ and _GET_. Thus, the endpoints are CSRF protected.

[Learn more about CSRF protection with the **App Router**](https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/c19f165084d742e096c5d1625cecd2d4.html?q=csrf#loioc19f165084d742e096c5d1625cecd2d4__section_xj4_pcg_2z){.learn-more}

Expand Down Expand Up @@ -278,7 +278,7 @@ cds.on('bootstrap', app => app.use ((req, res, next) => {

#### Configuring CORS in App Router

The _App Router_ has full support for CORS. Thus, by adding the _App Router_ as described in the [Deployment Guide: Using App Router as Gateway](../guides/deployment/to-cf#add-app-router), CORS can be configured in the _App Router_ configuration.
The _App Router_ has full support for CORS. Thus, CORS can be configured in the _App Router_ configuration.

[Learn more about CORS handling with the **App Router**](https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/ba527058dc4d423a9e0a69ecc67f4593.html?q=allowedOrigin#loioba527058dc4d423a9e0a69ecc67f4593__section_nt3_t4k_sz){.learn-more}

Expand All @@ -287,8 +287,6 @@ Configuring CORS in multiple places can lead to confusing debugging scenarios. C
:::




## Availability Checks

To proactively identify problems, projects should set up availability monitoring for all the components involved in their solution.
Expand Down
Loading