New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dot in route param prevents route match #4216
Comments
@kailniris Thanks for posting, we'll take a look as soon as possible. For help with questions about Sails, click here. If you’re interested in hiring @sailsbot and her minions in Austin, click here. |
Add this method in your // We want the session in all the routes, even the "files"
isSessionDisabled: function (req){
return false;
}, |
Doing what you said and setting skipAssets to false for this route solved the issue. But why does it work? Can you point me to the documentation of this feature pls? |
Thanks @Josebaseba! @kailniris docs for
|
@sgress454 However there is one thing I still don't understand, And i use this session option:
If I understand it correctly sails should not serve static assets this way, but it still serves the index.html from the assets folder. |
@kailniris Policy mappings declared in You typically wouldn't want any policies to apply to the
This would apply a policy to the route, but not actually declare a handler for it, since the |
Sails version: v1.0.0-37
Node version: v8.5.0
NPM version: 5.0.3
DB adapter name: N/A
DB adapter version: N/A
Operating system: windows 10 pro
Hi,
I have a controller which serves an image
I am trying to get this route to work
It responses 404 but work with
Also works with
I tried the following router configuration
If I set
skipAssets: false
then the response will be unauthorized. I have the following ACLIn the isLoggedIn.js policy the req.session is undefined even when the user has a valid session.
if I set
'items/images/find': true
it will work but I want access control for this route.The text was updated successfully, but these errors were encountered: