Agora pelo menos o react ta acessando a API quando eu dou o login no navegador:
mas continua dando erro no console e o login nao passa:
AxiosError {message: 'Request failed with status code 403', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}code: "ERR_BAD_REQUEST"config: adapter: (2) ['xhr', 'http']data: "{\"login\":\"\",\"senha\":\"\"}"env: {FormData: ƒ, Blob: ƒ}headers: AxiosHeaders {Accept: 'application/json, text/plain, */*', Content-Type: 'application/json'}maxBodyLength: -1maxContentLength: -1method: "post"timeout: 0transformRequest: [ƒ]0: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)length: 2name: "transformRequest"prototype: constructor: ƒ transformRequest(data, headers)[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()[[Prototype]]: Objectarguments: (...)caller: (...)[[FunctionLocation]]: index.js:46[[Prototype]]: ƒ ()length: 1[[Prototype]]: Array(0)transformResponse: [ƒ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "http://localhost:8080/login"validateStatus: ƒ validateStatus(status)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Request failed with status code 403"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: '', status: 403, statusText: '', headers: AxiosHeaders, config: {…}, …}stack: "AxiosError: Request failed with status code 403\n at settle (http://localhost:3000/static/js/bundle.js:50002:12)\n at XMLHttpRequest.onloadend (http://localhost:3000/static/js/bundle.js:48700:66)"[[Prototype]]: Error
aoSubmeterFormulario @ index.js:19
await in aoSubmeterFormulario (assíncrono)
callCallback @ react-dom.development.js:4164
invokeGuardedCallbackDev @ react-dom.development.js:4213
invokeGuardedCallback @ react-dom.development.js:4277
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4291
executeDispatch @ react-dom.development.js:9041
processDispatchQueueItemsInOrder @ react-dom.development.js:9073
processDispatchQueue @ react-dom.development.js:9086
dispatchEventsForPlugins @ react-dom.development.js:9097
(anônimo) @ react-dom.development.js:9288
batchedUpdates$1 @ react-dom.development.js:26140
batchedUpdates @ react-dom.development.js:3991
dispatchEventForPluginEventSystem @ react-dom.development.js:9287
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay @ react-dom.development.js:6465
dispatchEvent @ react-dom.development.js:6457
dispatchDiscreteEvent @ react-dom.development.js:6430