My initial goal is creating working http(ssl) proxy based on TOR socks5 connection first I up python-proxy with self-signed key then chained stunnel for securing connection, it works but cannot handle wss connection and seems like needs this headers patch ‘Access-Control-Allow-Origin’ ‘*’ … I didn’t find info how to do that using stunnel config, so […]
- Tags 'X-Requested-With'], "?" 2020/12/24 10:33:58 [debug] 142472#142472: *3 http set discard body 2020/12/24 10:33:58 [debug] 142472#142472: *3 xslt filter header 2020, 24 Dec 2020 08:33:58 GMT Content-Type: text/html Content-Length: 166 Connection: close I am confused with this debug log ... could someone e, A[1], avail:-1 2020/12/24 10:33:58 [debug] 142472#142472: *3 recv: fd:20 205 of 1024 2020/12/24 10:33:58 [debug] 142472#142472: *3 reusable connect, c:1 2020/12/24 10:33:58 [debug] 142472#142472: *3 event timer del: 20: 142048169 2020/12/24 10:33:58 [debug] 142472#142472: *3 http special r, Cache-Control, client: 127.0.0.1, Content-Type'; } if ($request_method = 'CONNECT') { add_header 'Access-Control-Allow-Origin' '*'; }, Content-Type'; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_hea, Content-Type'; # # Tell client that this pre-flight info is valid for 20 days # add_header 'A, If-Modified-Since, it works but cannot handle wss connection and seems like needs this headers patch 'Access-Control-Allow-Origin' '*' ... I didn't find info ho, Keep-Alive, My initial goal is creating working http(ssl) proxy based on TOR socks5 connection first I up python-proxy with self-signed key then chained, OPTIONS'; # # Custom headers and headers various browsers *should* be OK with but aren't # ad, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT, post, ready: 0 2020/12/24 10:33:58 [debug] 142472#142472: posix_memalign: 000055C8D4399B60:512 @16 2020/12/24 10:33:58 [debug] 142472#142472: *3 ac, request: "CONNECT stackoverflow.com:443 HTTP/1.1" 2020/12/24 10:33:58 [debug] 142472#142472: *3 http finalize request: 400, server, so started to dig nginx way (as a next chained proxy) nginx vhost config: # Virtual Host configuration for stunnel+pproxy+tor # https://doc, User-Agent, X-CustomHeader