mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-06-04 23:16:48 +00:00
Support proxying through a proxy - #37
Automatically respects proxy headers from environment variables, using https://github.com/Rob--W/proxy-from-env
This commit is contained in:
@@ -93,6 +93,12 @@ nock('http://example.com')
|
||||
.replyWithError('throw node')
|
||||
;
|
||||
|
||||
nock('https://example.com')
|
||||
.persist()
|
||||
.get('/')
|
||||
.reply(200, 'Response from https://example.com')
|
||||
;
|
||||
|
||||
echoheaders('http://example.com');
|
||||
echoheaders('http://example.com:1337');
|
||||
echoheaders('https://example.com');
|
||||
|
||||
Reference in New Issue
Block a user