-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Makes CSP middleware work in an environment without express ser…
…ver (#184) * [FIX] Makes CSP middleware work in an environment without express server With change 4f05967, the CSP middleware made use of 'express' APIs on the request object. When used in an environment without 'express' (e.g. the OpenUI5 legacy grunt tooling), the CSP middleware failed for all requests. It now uses the native NodeJS APIs again. Fixes https://github.com/SAP/ui5-server/issues/183 . * adapt tests
- Loading branch information
1 parent
7113942
commit c3089ad
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters