We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8fc0f8 + 634c174 commit 6e7dec1Copy full SHA for 6e7dec1
can-ajax.js
@@ -208,7 +208,7 @@ function ajax(o) {
208
// see https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Simple_requests
209
210
var isSimpleCors = o.crossDomain && ['GET', 'POST', 'HEAD'].indexOf(type) !== -1;
211
- isFormData = o.data instanceof FormData;
+ isFormData = typeof FormData !== "undefined" && o.data instanceof FormData;
212
213
if (isPost) {
214
if (isFormData) {
0 commit comments