diff --git a/src/views/documentation.blade.php b/src/views/documentation.blade.php index 53b47bb..fcaf9af 100644 --- a/src/views/documentation.blade.php +++ b/src/views/documentation.blade.php @@ -177,14 +177,14 @@ function changeTheme(theme) { ], layout: 'StandaloneLayout', requestInterceptor: (request) => { - request.headers['content-type'] = 'application/json'; + request.headers['Content-Type'] = 'application/json'; request.headers['accept'] = 'application/json'; return request; }, - responseInterceptor: (request) => { - request.headers['content-type'] = 'application/json'; - request.headers['accept'] = 'application/json'; - return request; + responseInterceptor: (response) => { + response.headers['Content-Type'] = 'application/json'; + response.headers['accept'] = 'application/json'; + return response; } }); };