Update to new MITM API function
This commit is contained in:
parent
ca00ad6792
commit
1760661c5b
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def request(flow: flow.Flow):
|
||||||
|
|
||||||
# Hijack CORS OPTIONS request
|
# Hijack CORS OPTIONS request
|
||||||
if flow.request.method == "OPTIONS":
|
if flow.request.method == "OPTIONS":
|
||||||
flow.response = http.HTTPResponse.make(200, b"", {
|
flow.response = http.Response.make(200, b"", {
|
||||||
"Access-Control-Allow-Origin": allowed_origin(original_origin),
|
"Access-Control-Allow-Origin": allowed_origin(original_origin),
|
||||||
"Access-Control-Allow-Methods": "GET,POST",
|
"Access-Control-Allow-Methods": "GET,POST",
|
||||||
"Access-Control-Allow-Headers": ALLOW_HEADERS,
|
"Access-Control-Allow-Headers": ALLOW_HEADERS,
|
||||||
|
|
Loading…
Reference in a new issue