<div dir="ltr"><div><div><div><div>A client-side javascript app is performing the following request:<br><br><i>DELETE /apiman-gateway/org/service/1.1/resource/7 HTTP/1.1<br>Host: <a href="http://172.17.0.1:8080">172.17.0.1:8080</a><br>User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0<br>Accept: application/json, text/plain, */*<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate<br>Authorization: Bearer $ACCESS_TOKEN<br>Referer: <a href="http://172.17.0.1:3000/">http://172.17.0.1:3000/</a><br>Origin: <a href="http://172.17.0.1:3000">http://172.17.0.1:3000</a><br>Connection: keep-alive<br><br></i></div>But the gateway is performing the following request to the endpoint:<br><br><i>DELETE /service/rest/resource/7 HTTP/1.1<br>User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)<br>Origin: <a href="http://172.17.0.1:3000" target="_blank">http://172.17.0.1:3000</a><br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate<br>Connection: keep-alive<br>Authorization: Bearer $ACCESS_TOKEN<br>Accept:
 image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-excel, application/msword, 
application/vnd.ms-powerpoint, */*<br>Referer: <a href="http://172.17.0.1:3000/" target="_blank">http://172.17.0.1:3000/</a><br>Host: <a href="http://172.17.0.1:8280" target="_blank">172.17.0.1:8280</a><br>Content-Type: application/x-www-form-</i><i>urlencoded<br>Content-Length: 0<br><br></i></div>Resulting in a 415 Unsupported Media Type at the endpoint.<br><br></div>GET, POST and PUT requests are OK.<br><br></div>Only using CORS Policy for this endpoint:<br><br><i>Access-Control-Allow-Origin: *<br>Access-Control-Allow-Credentials: true<br>Access-Control-Allow-Headers: accept, authrotization, content-type<br>Access-Control-Allow-Methods: GET, POST, PUT, DELETE<br>Access-Control-Max-Age: 3600</i><br></div>