GithubHelp home page GithubHelp logo

Comments (6)

dddomodossola avatar dddomodossola commented on June 2, 2024

@nzjrs This seems to be generated by the regular expressions. Maybe this is specifically wanted because of security reasons. But we have to consider that, if the /res folder is part of the library and we have different apps using the library, should all apps insert their resources in the library path? How we can manage this?

from remi.

nzjrs avatar nzjrs commented on June 2, 2024

We could whitelist a local location in the Server constructor

s = Server(local_base='/foo') and then only serve res files relative to that base?

from remi.

dddomodossola avatar dddomodossola commented on June 2, 2024

@nzjrs it seems to be a good idea. The default value could be the app path. But what about the regex? I do not figure out how to make this in the best way..

from remi.

nzjrs avatar nzjrs commented on June 2, 2024

I guess first decide on the design, then the regex. What do you want the design to be?

from remi.

dddomodossola avatar dddomodossola commented on June 2, 2024

I like the whitelist idea. I think that it should contain as default the library /res folder and the actual execution path of the application. As additional parameter (in the start function call) it could be possible to add a list() of directories.

from remi.

nzjrs avatar nzjrs commented on June 2, 2024

This should be fixed with

35ce4c0

from remi.

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.