hello
it's very urgent please if someone can help me
I have a problem of consumption of a java web service type DELETE. I do not know what the problem is exactly.
I used the JWT and spring security to secure my application spring boot side back (java) and when I try to call a service type GET or POST it works well but when I call a service DELETE it makes me
"DELETE Method is not allowed by Access Control-Allow-Methods in preflight response."
the error:
Failed to load http://localhost:8080/releveurs/delete/5: Method DELETE is not allowed by Access-Control-Allow-Methods in preflight response.
core.js:1448 ERROR
hello it's very urgent please if someone can help me I have a problem of consumption of a java web service type DELETE. I do not know what the problem is exactly. I used the JWT and spring security to secure my application spring boot side back (java) and when I try to call a service type GET or POST it works well but when I call a service DELETE it makes me "DELETE Method is not allowed by Access Control-Allow-Methods in preflight response."
the error: Failed to load http://localhost:8080/releveurs/delete/5: Method DELETE is not allowed by Access-Control-Allow-Methods in preflight response. core.js:1448 ERROR
response: Request URL: http://localhost:8080/releveurs/delete/5 Request Method: OPTIONS Status Code: 200 Remote Address: [::1]:8080 Referrer Policy: no-referrer-when-downgrade Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Methods, Access-Control-Request-Headers,Authorization Access-Control-Allow-Origin: Access-Control-Expose-Headers: Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Authorization Cache-Control: no-cache, no-store, max-age=0, must-revalidate Content-Length: 0 Date: Thu, 10 May 2018 14:02:16 GMT Expires: 0 Pragma: no-cache X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block Accept: /* Accept-Encoding: gzip, deflate, br Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6 Access-Control-Request-Headers: authorization,content-type Access-Control-Request-Method: DELETE Connection: keep-alive Host: localhost:8080 Origin: http://localhost:4200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
my JWT configuration: ``