Rob Wu
a2f0c05b24
Add more tests for setHeaders
2015-08-23 10:58:58 +02:00
Nikolay Derkach
c5a3877e6c
add setHeaders option
2015-08-22 16:49:59 -07:00
Rob Wu
837dee582c
Add originBlacklist + originWhitelist
...
- originWhitelist resolves #24
- originBlacklist may help with #32
2015-08-16 01:05:26 +02:00
Rob Wu
0e594a2b03
Skip host check if scheme is explicitly set
...
Fixes https://github.com/Rob--W/cors-anywhere/issues/14
This allows CORS anywhere to be forwards-compatible with the surge
of new gTLDs.
2015-05-09 11:09:59 +02:00
Rob Wu
d437bc9225
Test that redirect headers are not set in response
2015-05-06 20:02:55 +02:00
Rob Wu
024d540e7c
Fix test expectations for xfwd
2015-05-06 19:46:58 +02:00
Rob Wu
2d84862546
Upgrade http-proxy to 1.11.1
...
All xfwd and tests fails with this change, but that's because the
tests themselves were incorrect (using port 80/443 instead of the
ephemeral ports created for the tests).
2015-05-06 19:19:21 +02:00
Rob Wu
f98705f27b
Add test for proxy error
2015-05-06 18:40:04 +02:00
Rob Wu
e8202aa31f
Add more xfwd tests (https+http & http+https)
2015-05-06 18:20:11 +02:00
Rob Wu
056cb446fe
x-forwarded-port should match the request port.
...
Not the proxied one. These tests will now fail, but that's because
the current implementation is apparently incorrect.
2015-05-06 12:08:53 +02:00
Rob Wu
80da247827
Add httpsOptions option to create https.Server
...
Note: This does not work with the current version of node-http-proxy
and node 0.12.0 because req.connection.pair is not defined.
2015-05-06 12:07:31 +02:00
Rob Wu
1ee157fc0f
Add unit tests
2015-05-05 22:37:20 +02:00