kibana/packages
Kibana Machine 3a59f5d50f
[8.18] [Kibana Dev Server] Fix DELETE requests without a body in Safari (#220899) (#220967)
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Kibana Dev Server] Fix `DELETE` requests without a body in Safari
(#220899)](https://github.com/elastic/kibana/pull/220899)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Robert
Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-20T07:35:30Z","message":"[Kibana
Dev Server] Fix `DELETE` requests without a body in Safari
(#220899)\n\nRecently, we discovered that a `DELETE` request to one of
our ML\nendpoints does not work correctly in Safari.\nAfter further
investigation, it turns out that `DELETE` requests without\na body fail
in Safari.\nThe issue occurs only within the Kibana Dev server, so there
is no\nimpact on end users.\nThis is most likely due to a header set in
the\n`packages/kbn-cli-dev-mode/src/base_path_proxy/http1.ts` file. The
issue\nmentioned in the comment has already been resolved, and
everything\nappears to work correctly without this outdated
workaround.\n\nTo reproduce the error:\n1. Start Kibana locally and open
it with Safari.\n2. Find an endpoint that uses the `DELETE` method and
does not have a\nbody specified.\n3. ^ For example, go to Observability
-> Cases and create a new case.\n4. Go back to the cases list and try to
delete the
case","sha":"fa0500c346389758fb09935be246752dcdbbb6f3","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Operations","release_note:skip","backport:version","v9.1.0","v8.19.0","v8.17.7","v8.18.2","v9.0.2"],"title":"[Kibana
Dev Server] Fix `DELETE` requests without a body in
Safari","number":220899,"url":"https://github.com/elastic/kibana/pull/220899","mergeCommit":{"message":"[Kibana
Dev Server] Fix `DELETE` requests without a body in Safari
(#220899)\n\nRecently, we discovered that a `DELETE` request to one of
our ML\nendpoints does not work correctly in Safari.\nAfter further
investigation, it turns out that `DELETE` requests without\na body fail
in Safari.\nThe issue occurs only within the Kibana Dev server, so there
is no\nimpact on end users.\nThis is most likely due to a header set in
the\n`packages/kbn-cli-dev-mode/src/base_path_proxy/http1.ts` file. The
issue\nmentioned in the comment has already been resolved, and
everything\nappears to work correctly without this outdated
workaround.\n\nTo reproduce the error:\n1. Start Kibana locally and open
it with Safari.\n2. Find an endpoint that uses the `DELETE` method and
does not have a\nbody specified.\n3. ^ For example, go to Observability
-> Cases and create a new case.\n4. Go back to the cases list and try to
delete the
case","sha":"fa0500c346389758fb09935be246752dcdbbb6f3"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.18","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220899","number":220899,"mergeCommit":{"message":"[Kibana
Dev Server] Fix `DELETE` requests without a body in Safari
(#220899)\n\nRecently, we discovered that a `DELETE` request to one of
our ML\nendpoints does not work correctly in Safari.\nAfter further
investigation, it turns out that `DELETE` requests without\na body fail
in Safari.\nThe issue occurs only within the Kibana Dev server, so there
is no\nimpact on end users.\nThis is most likely due to a header set in
the\n`packages/kbn-cli-dev-mode/src/base_path_proxy/http1.ts` file. The
issue\nmentioned in the comment has already been resolved, and
everything\nappears to work correctly without this outdated
workaround.\n\nTo reproduce the error:\n1. Start Kibana locally and open
it with Safari.\n2. Find an endpoint that uses the `DELETE` method and
does not have a\nbody specified.\n3. ^ For example, go to Observability
-> Cases and create a new case.\n4. Go back to the cases list and try to
delete the
case","sha":"fa0500c346389758fb09935be246752dcdbbb6f3"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/220964","number":220964,"state":"OPEN"},{"branch":"8.17","label":"v8.17.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
2025-05-20 16:55:28 +01:00
..
kbn-babel-preset [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-bazel-runner Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-capture-oas-snapshot-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-check-mappings-update-cli [8.18] [Entity Analytics] Consider Closed alerts for Risk Scoring (#193667) (#210941) 2025-02-13 11:20:13 +05:30
kbn-check-prod-native-modules-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ci-stats-performance-metrics [8.18] Disable allowAbsoluteUrls for axios (#215138) (#215828) 2025-03-26 02:52:05 +02:00
kbn-ci-stats-shipper-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-cli-dev-mode [8.18] [Kibana Dev Server] Fix DELETE requests without a body in Safari (#220899) (#220967) 2025-05-20 16:55:28 +01:00
kbn-dependency-usage [8.18] [CI] Only emit .d.ts when running typecheck (#209259) (#214942) 2025-03-18 14:51:05 +02:00
kbn-docs-utils [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974) 2025-01-13 10:53:37 +00:00
kbn-eslint-config [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-eslint-plugin-css [8.x] Resolve false positives with eslint no color rule (#204848) (#204906) 2024-12-19 06:23:17 -06:00
kbn-eslint-plugin-disable [8.x] Add ESLINT constraints to detect inter-group dependencies (#194810) (#197670) 2024-10-24 13:20:30 -07:00
kbn-eslint-plugin-eslint Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-eslint-plugin-i18n [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974) 2025-01-13 10:53:37 +00:00
kbn-eslint-plugin-imports [8.18] chore(NA): upgrade to webpack 5 (#191106) (#211147) 2025-02-14 13:36:18 +00:00
kbn-eslint-plugin-telemetry [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ux-infra_services-team (#202830) (#205231) 2024-12-29 13:10:37 -06:00
kbn-failed-test-reporter-cli [8.18] Disable allowAbsoluteUrls for axios (#215138) (#215828) 2025-03-26 02:52:05 +02:00
kbn-find-used-node-modules Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-generate [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-generate-console-definitions [8.x] SKA: Categorise remaining packages (#205875) (#205973) 2025-01-08 23:32:22 +00:00
kbn-import-locator Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-json-ast Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-kibana-manifest-schema [8.x] Kibana Sustainable Architecture: Force &#x60;visibility: &#x27;private&#x27;&#x60; for solutions in manifest (#199452) (#199488) 2024-11-08 10:26:58 -06:00
kbn-lint-packages-cli [8.x] [codeowners] Filter kibanamachine (#199404) (#199864) 2024-11-12 14:38:18 -06:00
kbn-lint-ts-projects-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-managed-vscode-config [8.18] SKA: Misc cleanup and enhancements (#212207) (#212352) 2025-02-25 13:18:12 +00:00
kbn-managed-vscode-config-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-manifest [8.x] Sustainable Kibana Architecture: Categorise straightforward packages (#199630) (#201340) 2024-11-22 09:47:23 -06:00
kbn-mock-idp-plugin [8.x] Preparation for High Contrast Mode, Security domains (#202609) (#203493) 2024-12-09 16:43:23 -06:00
kbn-optimizer [8.18] chore(NA): updating used polyfills using 3rd party library (#218020) (#219802) 2025-05-01 04:52:20 +01:00
kbn-peggy-loader [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-performance-testing-dataset-extractor [8.x] [ES &#x60;body&#x60; removal] &#x60;@elastic/appex-qa&#x60; (#204878) (#204916) 2024-12-19 06:55:11 -06:00
kbn-picomatcher Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-plugin-check [8.x] SKA: Categorise remaining packages (#205875) (#205973) 2025-01-08 23:32:22 +00:00
kbn-plugin-generator [8.x] Sustainable Kibana Architecture: Update tooling to take into account the new folders (#202327) (#202419) 2024-12-02 06:01:43 -06:00
kbn-plugin-helpers [8.18] fix: add REACT_18 env variable to kbn-plugin-helpers bazel config (#211121) (#211615) 2025-02-18 19:29:29 +01:00
kbn-relocate [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-repo-file-maps Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-linter Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-source-classifier [8.18] chore(NA): upgrade to webpack 5 (#191106) (#211147) 2025-02-14 13:36:18 +00:00
kbn-repo-source-classifier-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-set-map [8.x] SKA: Categorise remaining packages (#205875) (#205973) 2025-01-08 23:32:22 +00:00
kbn-sort-package-json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-spec-to-console Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-styled-components-mapping-cli [8.18] SKA: Relocate "platform" packages that remain on /packages (208704) (#212751) 2025-03-05 19:22:58 +03:00
kbn-ts-projects [Backport] Dependency Usage CLI (#201815) 2024-11-26 21:48:26 +01:00
kbn-ts-type-check-cli [8.18] [CI] Only emit .d.ts when running typecheck (#209259) (#214942) 2025-03-18 14:51:05 +02:00
kbn-validate-next-docs-cli [8.x] [ci] Work around docosaurus errors (#206097) (#206150) 2025-01-10 00:31:36 +00:00
kbn-web-worker-stub Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-whereis-pkg-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-yarn-lock-validator Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00