-
Notifications
You must be signed in to change notification settings - Fork 830
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
Add in same-origin check for ExpressRoute #158
Conversation
What happens when a user does pass in a different origin? |
I added in an explicit check to make sure that the I also made a slight tweak to the base If you'd rather I not tweak |
ErrorFactory change looks good. With the slash, is there any chance someone would go: |
I poked around the The reason not to support anything other than paths that start with '/' is that we're billing this library as being "Express"-style routing, and from what I can tell from the Express docs, it always requires routes to start with '/'. So it's a somewhat artificial requirement meant to enforce Express's restrictions. Of course, if we didn't behave like Express then this module would undergo an existential crisis, so I'm in favor of maintaining that requirement. |
I'm a tad confused why your build is unhappy given no changes in this should have upset - trying to fix travis.... |
Looks like it's cleared up now, but yes, that is odd... I'm going to merge. |
R: @addyosmani @gauntface
Fixes #151