dstore icon indicating copy to clipboard operation
dstore copied to clipboard

There seems to be no supported way to use Request withCredentials

Open jandppw opened this issue 10 years ago • 2 comments

dojo/request/xhr.__BaseOptions supports the withCredentials option, necessary for CORS behaviour. There seems to be no supported way in dstore/Request to set this option, now any other option, like password, user, preventCache, sync, timeout, etc., apart from the headers and the query parameters.

        var response = request(requestUrl, {
            method: 'GET',
            headers: headers
        });

This makes Request and the specialisations of it unusable at least in CORS situations, unless I'm missing something.

jandppw avatar Feb 16 '15 10:02 jandppw

the resolution of #79 may provide a way for you to do it more directly through the store but, while the store itself might not expose what you need, it doesn't mean you can't do it - right now, i believe you can use a request provider to achieve what you want.

neonstalwart avatar Feb 16 '15 15:02 neonstalwart

Yes, I agree that addressing #79 would provide a mechanism for this. As @neonstalwart says, a request provider would be able to provide this mechanism for you, but I can see the benefit of making that more clean.

kitsonk avatar Aug 11 '15 10:08 kitsonk