-
Notifications
You must be signed in to change notification settings - Fork 303
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
Making proxy work #111
Making proxy work #111
Conversation
nicola
commented
Aug 3, 2015
- Proxy working
- basic test
- further tests
- make sure cors works on proxy requests
Interesting travis might have some proxy for external resources, this needs further testing |
ldp.xssProxy = argv.xssProxy; | ||
ldp.proxyFilter = regexp().start(ldp.xssProxy).toRegExp(); | ||
ldp.proxy = argv.proxy; | ||
ldp.proxyFilter = regexp().start(ldp.proxy).toRegExp(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question: what does proxyFilter do, and why do we need a filter for proxy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, removing that variable. It created a regex based on ldp.proxy
, however express handles paths as regexp already, so no need for that
r+ |