Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remind the user to omit the protocol prefix for POST, DELETE and PUT …
…requests in Angular (#170) * Remind the user to omit the protocol prefix for POST, DELETE and PUT requests, else Angular will not provide an XSRF header. Example: `gatewayUri = '//localhost:8080'`. See angular/angular#20511 * - If the frontend is not SAMEORIGIN, then prefix the API URI with the gateway domain, but without the protocol prefix, otherwise Angular will not provide a CSRF header for POST/DELETE/PUT requests. See: angular/angular#20511 Example: `export const apiUri = '//localhost:8080/bff/v1'`. - Delete gatewayUri references and use only the path for API requests, as they are are of the same origin --------- Co-authored-by: ph <[email protected]>
- Loading branch information