You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ajax): crossDomain flag deprecated and properly reported to consumers (#6710)
* fix(ajax): crossDomain flag deprecated and properly reported to consumers
Fixes an issue where the `crosDomain` flag was being incorrectly reported to users via error objects and response objects as defaulting to `true`, when it was in fact defaulting to `false`.
Deprecates the `crossDomain` flag in favor of allowing the configuration of the request and the browser to dictate whether or not a preflight request is necessary. Adds deprecation messages with advice about how to force CORS preflights. Ultimately, the boolean flag does not make sense, as there are a lot of factors that dictate CORS preflight use and they may vary by browser/environment.
Resolves#6663
* chore: Update side effects file
* chore: update side effects files
* Whether or not to send the HTTP request as a CORS request.
135
135
* Defaults to `false`.
136
+
*
137
+
* @deprecated Will be removed in version 8. Cross domain requests and what creates a cross
138
+
* domain request, are dictated by the browser, and a boolean that forces it to be cross domain
139
+
* does not make sense. If you need to force cross domain, make sure you're making a secure request,
140
+
* then add a custom header to the request or use `withCredentials`. For more information on what
141
+
* triggers a cross domain request, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials).
142
+
* In particular, the section on [Simple Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests) is useful
0 commit comments