From 62505ebe00b4ec3ae07c2a9f8495f6616b47f74c Mon Sep 17 00:00:00 2001 From: msuret <11944422+msuret@users.noreply.github.com> Date: Tue, 22 Sep 2020 16:06:00 +0200 Subject: [PATCH] fix content-type header for client credentials grants --- src/scripts/cores/oauth2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/cores/oauth2.js b/src/scripts/cores/oauth2.js index 8fc377b..74985d6 100644 --- a/src/scripts/cores/oauth2.js +++ b/src/scripts/cores/oauth2.js @@ -455,7 +455,7 @@ $(function () { data['scope'] = params.scope; } ajaxOption['data'] = data; - ajaxOption['contentType'] = 'Content-Type: application/x-www-form-urlencoded'; + ajaxOption['contentType'] = 'application/x-www-form-urlencoded'; } console.log(`[oauth2.js][obtain-access-token] ajaxOption`, ajaxOption); @@ -647,4 +647,4 @@ function oauth2Sign(request) { request.url = Misc.insertParam(request.url, { 'access_token': request.authentication.data.result.access_token }); } return request; -} \ No newline at end of file +}