-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to nginx as reverse proxy for geckodriver.
Since geckodriver also checks the Origin header, using a reverse proxy does not disable CSRF protection. e.g. the following request will be rejected: curl -v -H 'Origin:http://example.org/' -H 'Host:geckodriver' -H 'Content-Type:application/json' -d '{"capabilities":{}}' localhost:4444/session While the following request (without the Origin header) will succeed: curl -v -H 'Host:geckodriver' -H 'Content-Type:application/json' -d '{"capabilities":{}}' localhost:4444/session See also: mozilla/geckodriver#1935
- Loading branch information
Showing
4 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
daemon off; | ||
worker_processes 1; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
server { | ||
listen 4444; | ||
location / { | ||
proxy_http_version 1.1; | ||
proxy_pass http://127.0.0.1:5555; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
#!/bin/sh | ||
|
||
# Start tinyproxy: | ||
tinyproxy -d & | ||
|
||
# Execute the given command: | ||
exec "$@" | ||
nginx & exec "$@" |
This file was deleted.
Oops, something went wrong.