Code Monkey home page Code Monkey logo

Comments (7)

dom111 avatar dom111 commented on May 28, 2024

Hey Niel, sorry to hear that... 403 is weird indeed. The toast appears to show that the HEAD request was forbidden too. I've not experimented much with nginx's WebDAV module, do you have a basic setup you could easily share with me that recreates the problem? I'll try and create a example config/docker-compose for nginx this week if I get time if not.

Thanks for the report!

from webdav-js.

nielll avatar nielll commented on May 28, 2024

Thx for your help dom,

In my server setup I am using Plesk, where nginx and Apache work in tandem, with Apache serving dynamic content and nginx being used as a proxy serving static content.

So, webdav is running under apache2 and maybe I have to set header now in nginx, as I didnt have to set before. But I am really not experienced at all. Docker is also disabled in my vps :/

Greetings

from webdav-js.

dom111 avatar dom111 commented on May 28, 2024

Thanks for the extra info. I'm guessing this happened only when updating to the latest version. which is a shame... The underlying mechanism should be the same, but it should be possible to bind to a specific version whilst I investigate this (you can run build/examples-tag.sh 1.1.0 which should generate fixed version configs at 1.1.0) but I'd be really interested in finding out if I can avoid this problem in the app directly so any configs you can safely share for nginx and/or Apache would be awesome.

from webdav-js.

dom111 avatar dom111 commented on May 28, 2024

I've just pushed to a test branch which disables HEAD requests (if data-disable-check attribute exists on the page - so you'll need the updated header.html as well as source files). It's only a rough branch (and apparently I need to sort out the tests!) but would you be able to take a quick look and see if this fixes your problem when you have time please?

https://github.com/dom111/webdav-js/tree/feature/disable-head-requests

Thanks!

from webdav-js.

nielll avatar nielll commented on May 28, 2024

Hi dom,

Thanks for the extra info. I'm guessing this happened only when updating to the latest version.

yes, you are right!

I've just pushed to a test branch which disables HEAD requests (if data-disable-check attribute exists on the page - so you'll need the updated header.html as well as source files). It's only a rough branch (and apparently I need to sort out the tests!) but would you be able to take a quick look and see if this fixes your problem when you have time please?

I tested it but it is still the same. I double checked it, also tested again with the old webdav-js.min (https://github.com/dom111/webdav-js/blob/82dce1a51f8810ba219ee6cb2b7fb04a5c89c015/src/webdav-min.js), which worked for me again.

greets

from webdav-js.

nielll avatar nielll commented on May 28, 2024

I just saw that I forgot to set the attribut. It works by the way. :)

from webdav-js.

dom111 avatar dom111 commented on May 28, 2024

Oh great! I'm glad this works! I'll add in some tests for this and get it merged to master in the next week or so. Thanks for reporting!

from webdav-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.