[Apiman-user] Content-type header included in gateway DELETE requests to endpoint

Jairo Junior junior.jairo1 at gmail.com
Mon Jul 25 09:14:33 EDT 2016


A client-side javascript app is performing the following request:












*DELETE /apiman-gateway/org/service/1.1/resource/7 HTTP/1.1Host:
172.17.0.1:8080 <http://172.17.0.1:8080>User-Agent: Mozilla/5.0 (X11;
Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0Accept:
application/json, text/plain, */*Accept-Language:
en-US,en;q=0.5Accept-Encoding: gzip, deflateAuthorization: Bearer
$ACCESS_TOKENReferer: http://172.17.0.1:3000/
<http://172.17.0.1:3000/>Origin: http://172.17.0.1:3000
<http://172.17.0.1:3000>Connection: keep-alive*
But the gateway is performing the following request to the endpoint:











*DELETE /service/rest/resource/7 HTTP/1.1User-Agent: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1)Origin: http://172.17.0.1:3000
<http://172.17.0.1:3000>Accept-Language: en-US,en;q=0.5Accept-Encoding:
gzip, deflateConnection: keep-aliveAuthorization: Bearer
$ACCESS_TOKENAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, */*Referer: http://172.17.0.1:3000/
<http://172.17.0.1:3000/>Host: 172.17.0.1:8280
<http://172.17.0.1:8280>Content-Type: application/x-www-form-*


*urlencodedContent-Length: 0*
Resulting in a 415 Unsupported Media Type at the endpoint.

GET, POST and PUT requests are OK.

Only using CORS Policy for this endpoint:





*Access-Control-Allow-Origin: *Access-Control-Allow-Credentials:
trueAccess-Control-Allow-Headers: accept, authrotization,
content-typeAccess-Control-Allow-Methods: GET, POST, PUT,
DELETEAccess-Control-Max-Age: 3600*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20160725/a814c67e/attachment.html 


More information about the Apiman-user mailing list