Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
Signed-off-by: Tianle Huang <[email protected]>
  • Loading branch information
tianleh committed Mar 8, 2024
1 parent 68239b0 commit fa8bcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/csp_handler/server/csp_handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export function createCspRulesPreResponseHandler(

const [coreStart] = await core.getStartServices();

const myClient = getConfigurationClient(coreStart.opensearch.client.asScoped(request));
const client = getConfigurationClient(coreStart.opensearch.client.asScoped(request));

const cspRules = await myClient.getEntityConfig(CSP_RULES_CONFIG_KEY);
const cspRules = await client.getEntityConfig(CSP_RULES_CONFIG_KEY);

if (!cspRules) {
return appendFrameAncestorsWhenMissing(cspHeader, toolkit);
Expand Down

0 comments on commit fa8bcd6

Please sign in to comment.