1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/middleware
Ivar Conradi Østhus 09c87c755f
Fix/remove settings cache (#2694)
In this PR we remove the general SettingService cache, as it will not
work across multiple horizontal unleash instances, events are not
published across.

We also fix the CORS origin to: 
- Access-Control-Allow-Origin set to "*" if no Origin is configured
- Access-Control-Allow-Origin set to "*" if any Origin is configured to
"*"
- - Access-Control-Allow-Origin set to array and have the "cors"
middleware to return an exact match on the user provided Origin.

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2022-12-14 17:35:22 +01:00
..
api-token-middleware.test.ts Add test for api-token-middleware to not make database call when using PAT (#2110) 2022-09-29 08:53:29 +03:00
api-token-middleware.ts fix: CORS options path (#2165) 2022-10-11 09:20:29 +02:00
conditional-middleware.ts fix: refactor conditional middleware (#2261) 2022-10-26 13:00:49 +02:00
content_type_checker.test.ts fix: upgrade @types/node to v16.18.3 (#2365) 2022-11-10 08:20:15 +01:00
content_type_checker.ts fix: allow charset in content-type (#1241) 2022-01-20 15:00:16 +01:00
cors-origin-middleware.test.ts Fix/remove settings cache (#2694) 2022-12-14 17:35:22 +01:00
cors-origin-middleware.ts Fix/remove settings cache (#2694) 2022-12-14 17:35:22 +01:00
demo-authentication.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
index.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
no-authentication.test.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
no-authentication.ts refactor: replace ts-ignore with ts-expect-error (#1675) 2022-06-07 11:49:17 +02:00
oss-authentication.test.ts feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
oss-authentication.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
pat-middleware.test.ts refactor: remove PAT experimental flag (#2299) 2022-10-31 09:38:30 +00:00
pat-middleware.ts feat: update seen_at pat column (#2516) 2022-11-30 08:10:31 +02:00
rbac-middleware.test.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
rbac-middleware.ts fix: rbac should pick up projectId from path if available 2022-02-01 22:58:52 +01:00
request-logger.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
response-time-metrics.ts fix: add appName to http response time metrics (#2117) 2022-09-30 15:28:50 +02:00
secure-headers.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
session-db.ts fix: Remove unneeded ts-expect-error now that types in knex are in sync (#1866) 2022-07-28 10:34:19 +02:00