Closed zhaoz closed 8 years ago
You're going to have to thread this to spf.nav.request.send
as well. To make this available to clients, we could also thread this one step further to spf.nav.load
. (Since withCredentials
has no-effect on same-domain requests and we currently force reloads on cross-origin navigation, I don't think we need to make this available to spf.nav.navigate
.)
Added commits to forward withCredentials to spf.nav.request.send and spf.nav.load, also added to the markdown file.
Let me know if you prefer to have this squashed into one commit.
Please do squash into a single commit. You either do it beforehand in your fork or "squash and merge" using the GitHub UI when merging the PR.
Squashed my commits and addressed comments. Not sure how to mark comments as addressed though.
Ah, sorry I forgot this before -- can you add the withCredentials
property to the typedef in base.js too? https://github.com/youtube/spfjs/blob/master/src/client/base.js#L301
Updated
LGTM after nits.
Addressed comment issue. And updated.
This allows SPF to be used with CORS + Cookies.