Closed aenario closed 8 years ago
Nice :). Will it be sufficient to get an Authorization
header that can be extracted from https://github.com/cozy/cozy-proxy/blob/master/server/controllers/devices.coffee#L285?
@m4dz @flyingrub The problem is browser appears not to use the URL embeded credentials, we need to test if this change (ie. the ds sending the proper Authenticate error along the 401 error code) solve the issue in chrome and firefox.
Otherwise, we will have no choice but to accept credentials both as header or GET variable.
http://xxxx.cozycloud.cc/ds-api/file?Authorization=
Al'right. Telll me if you need me to test some parts!
can be closed :)
@flyingrub not sure: the way @aenario proposes here to send a Realm Auth header to force auth seems a way more cleaner than passing in a query params. I suggest we keep this one open and make some more tests :smiley:
This might allow cozysdk.getFileURL to work in prod.