We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/*
Say I grant access to /data/*:
/data/*
allow do origins '*' resource '/data/*' end
In actuality, this also grants access to /data_private, /database/foo/bar, and essentially any resource whose path starts with /data. ⚠️
/data_private
/database/foo/bar
/data
This is because the constructed regex makes the slash optional, and effectively behaves like *:
*
rx = compile('/data/*') # /^\/data\/?(.*?)$/ rx === '/data' # true rx === '/database' # true rx === '/database/foo/bar' # true
The text was updated successfully, but these errors were encountered:
I can create a PR, if no one creates
Sorry, something went wrong.
No branches or pull requests
Say I grant access to
/data/*
:In actuality, this also grants access to⚠️
/data_private
,/database/foo/bar
, and essentially any resource whose path starts with/data
.This is because the constructed regex makes the slash optional, and effectively behaves like
*
:The text was updated successfully, but these errors were encountered: