Skip to content

Commit ad006af

Browse files
committed
another missin header
1 parent 783482d commit ad006af

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • x-pack/test_serverless/api_integration/test_suites/observability/apm_api_integration/common

x-pack/test_serverless/api_integration/test_suites/observability/apm_api_integration/common/apm_api_supertest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export function createApmApiClient(st: supertest.SuperTest<supertest.Test>) {
3434
const { method, pathname, version } = formatRequest(endpoint, params.path);
3535
const url = format({ pathname, query: params?.query });
3636

37-
const headers: Record<string, string> = { 'kbn-xsrf': 'foo' };
37+
const headers: Record<string, string> = {
38+
'kbn-xsrf': 'foo',
39+
'x-elastic-internal-origin': 'foo',
40+
};
3841

3942
if (version) {
4043
headers['Elastic-Api-Version'] = version;

0 commit comments

Comments
 (0)