From abc5ce53827e88bd4bed695ac166d27f4b848074 Mon Sep 17 00:00:00 2001 From: hulkrelax <104332602+hulkrelax@users.noreply.github.com> Date: Tue, 28 Jun 2022 20:12:55 -0500 Subject: remove body property in args (#91) --- frontend/src/plugin-loader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/plugin-loader.tsx') diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index cad59c2f..c1f286ef 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -164,7 +164,7 @@ class PluginLoader extends Logger { return response.json(); }, fetchNoCors(url: string, request: any = {}) { - let args = { method: 'POST', headers: {}, body: '' }; + let args = { method: 'POST', headers: {} }; const req = { ...args, ...request, url, data: request.body }; return this.callServerMethod('http_request', req); }, -- cgit v1.2.3