From 71f0e82f30d33933880cf7ddc201e0995fea6386 Mon Sep 17 00:00:00 2001 From: David Cui Date: Mon, 10 May 2021 15:28:04 -0700 Subject: [PATCH] replace osd-version header to remove need for version number matching Signed-off-by: David Cui --- .../public/components/context_menu/context_menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboards-reports/public/components/context_menu/context_menu.js b/dashboards-reports/public/components/context_menu/context_menu.js index 9465a6b2..c3c4e0d2 100644 --- a/dashboards-reports/public/components/context_menu/context_menu.js +++ b/dashboards-reports/public/components/context_menu/context_menu.js @@ -126,7 +126,7 @@ const generateInContextReport = async ( { headers: { 'Content-Type': 'application/json', - 'osd-version': '1.0.0-beta1', + 'osd-xsrf': 'reporting', accept: '*/*', 'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6', pragma: 'no-cache', @@ -340,7 +340,7 @@ async function getTenantInfoIfExists() { const res = await fetch(`../api/v1/multitenancy/tenant`, { headers: { 'Content-Type': 'application/json', - 'osd-version': '1.0.0-beta1', + 'osd-xsrf': 'reporting', accept: '*/*', 'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6', pragma: 'no-cache',