1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/lib/types
Ivar Conradi Østhus 43c563af57
fix: optimize headers we return for API calls. (#5607)
Today we include a lot of "secutiry headers" for all API calls. Quite a
lot of them are only relevent when we return a HTML document for the
browser.

This PR removes and simplify these headers for API calls, so that we do
not include unecessary data in the HTTP headers.

Each header have been carfully examied by following best practices from
these source:

-
https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html
- https://owasp.org/www-project-secure-headers/

This feature is protected with feature flag named 'stripHeadersOnAPI'.
2023-12-12 10:20:28 +01:00
..
models docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
settings
stores refactor: feature oriented architecture for project-environment (#5510) 2023-12-01 12:41:46 +01:00
api-user.ts chore: expose types so we can use them properly (#5251) 2023-11-03 12:00:24 +01:00
authentication-required.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
core.ts
environment.ts
events.ts feat: new event type for CR config update (#5476) 2023-11-29 08:50:42 +01:00
experimental.ts fix: optimize headers we return for API calls. (#5607) 2023-12-12 10:20:28 +01:00
favorites.ts
group.ts fix: group roles assumption, refactor group types (#4576) 2023-09-05 20:30:20 +01:00
index.ts
model.ts feat: new project overview backend (#5344) 2023-12-01 11:20:24 +02:00
mutable.ts
no-auth-user.ts feat: optimize private projects for enterprise (#4812) 2023-09-22 11:54:33 +03:00
openapi.d.ts feat: extend refs in openapi (#3170) 2023-02-22 13:10:29 +01:00
option.ts chore: expose custom-handler-auth type (#5287) 2023-11-07 10:37:09 +01:00
partial.ts feat: Permissions update import (#3141) 2023-02-17 11:58:55 +01:00
permissions.ts feat: add CREATE_TAG_TYPE permission (#5386) 2023-11-22 10:20:19 +00:00
project.ts feat: add usage info to project role deletion dialog (#4464) 2023-08-17 09:43:43 +02:00
query.ts
saved.ts
serialize-dates.test.ts
serialize-dates.ts chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
services.ts refactor: feature oriented architecture for project-environment (#5510) 2023-12-01 12:41:46 +01:00
stores.ts refactor: feature oriented architecture for project-environment (#5510) 2023-12-01 12:41:46 +01:00
user.test.ts feat: replace gravatar-url with inline function (#5128) 2023-10-24 10:07:26 +02:00
user.ts chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00