System Information
- Strapi Version: 3.6.2
- Operating System: Windows WSL2 Ubuntu 18.04
- Database: sqlite3 5.0.0
- Node Version: 12.18.3
- NPM Version: 6.14.6
- Yarn Version: 1.22.5
I’ve tried, but it’s returning an error =/:
UnhandledPromiseRejectionWarning: Error: Request failed with status code 405
The response:
response: {
status: 405,
statusText: 'Method Not Allowed',
headers: {
vary: 'Origin',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
'x-frame-options': 'SAMEORIGIN',
allow: 'HEAD, GET',
'x-powered-by': 'Strapi <strapi.io>',
'x-response-time': '17ms',
'content-type': 'text/plain; charset=utf-8',
'content-length': '18',
date: 'Mon, 17 May 2021 20:10:04 GMT',
connection: 'close'
},
config: {
url: 'http://localhost:1337/admin/auth/local',
method: 'post',
data: '{"identifier":"MYEMAIL","password":"MYPASSWORD"}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus]
},
}