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.
1 parent d8fc0f8 commit 634c174Copy full SHA for 634c174
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