You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/10/21 08:18:34 UTC

[apisix-dashboard] 03/03: feat: update global request

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch feat-improvement
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git

commit 0d14ef06055bc31341a1ab0232879f0705a6289e
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Oct 21 16:17:43 2020 +0800

    feat: update global request
---
 src/app.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app.tsx b/src/app.tsx
index b437cc9..5aafc1c 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -66,7 +66,7 @@ export const request: RequestConfig = {
   credentials: 'same-origin',
   requestInterceptors: [
     (url, options) => {
-      const newOptions = options;
+      const newOptions = { ...options };
       newOptions.headers = {
         ...options.headers,
         Authorization: localStorage.getItem('token') || '',