Closed abdonrd closed 7 years ago
@abdonrd I'm only seeing 1 request in Chrome when I try all 3 links provided. Although, with the first request being OPTIONS I would guess that it was a CORS preflight request. The defaulted application/x-www-form-urlencoded
Content-Type
shouldn't trigger a CORS preflight.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests
Oh! Right now I only see one request. Closing...
Description
Everything works well without
content-type
property. Demo: https://jsbin.com/woreken/edit?html,outputBut if I set the
content-type
property toapplication/json
we have two requests (POST and OPTIONS): Demo: https://jsbin.com/lehudas/edit?html,outputExpected outcome
Only one request.
Actual outcome
Two request.
Live Demo
https://jsbin.com/nocuhuzuji/edit?html,output
Browsers Affected