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
Hmm, I had it set to true with authentication-walled APIs in mind (which is my main use case), but for public APIs, you're right, it's not a good default. Now that I think about it, public APIs are probably more common, so I'll consider this is a bug.
In any case, the flag is configurable via m.request's config option:
mithril sets withCredentials to true when making XHR requests. Chrome and Firefox disallow CORS requests with credentials if the allow origin is *.
Is there any reason it's set to true instead of being configurable?
The text was updated successfully, but these errors were encountered: