Closed catap closed 2 years ago
Hi 👋
The OPTIONS
preflight request in a browser never sends the Authorization
header and other user credentials (by design). So the Synology WebDAV is not properly configured, it shouldn't require authorization for the options request.
More info: https://stackoverflow.com/a/40723041
@icidasset Synology WebDAV is apache2.4 I guess. It is quite popular WebDAV server.
Maybe you may suggest how it should be configured?
Sorry, I shouldn't say configured, poor choice of words.
I meant that the Synology WebDAV plugin isn't properly programmed,
(the developers of) the plugin shouldn't require authorization for the OPTIONS
request.
Sadly lots of WebDAV servers aren't properly implemented according to the WebDAV specification. That's why I have the warning when you create a new source in Diffuse:
I'm guessing that plugin isn't open-source?
@icidasset this "plugin" is one of the most used in the world web server: apache.
I guess add docs how to use it for diffuse is quite usefull.
Well, Apache isn't the plugin, that's the HTTP server underneath. The Synology WebDAV server/plugin still has to configure Apache to serve the WebDAV responses. So when that OPTIONS
request comes in, the WebDAV server from Synology decides it's an invalid request, not Apache.
Anyhow, there's not much I can document, the WebDAV server just has to be implemented correctly according to the WebDAV and CORS specifications, which is not the case here.
@icidasset I guess you may add a way to configure apache which is much more popular when some another WebDAV servers :)
@icidasset I can write short instruction how to configure webdav inside apache with example of Synology. But it has one negative side effect: each upgrade of webdav all changes will be rejected :(
@catap That'd be great, I have zero experience with this kind of setup.
@icidasset I totally forgot about this one. As I said before => each upgrade brokes things :( => I've gave up this idea.
I'm using version 3.0.0 and when I've tried to connect to WebDAV on my Synology I can't because it never sent HTTP Auth heraers.
Example of traffic: