Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Added to hopefully send cookies?
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanuk12 committed Dec 29, 2022
1 parent 1f435dd commit c875e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fn patch(path: PathBuf, _proxy: Option<String>) {
// Patching the background file
let background = path.join("background.js");
let mut background_contents = fs::read_to_string(&background).expect("Unable to open file (background.js)");
background_contents.insert_str(0, "$.ajaxSetup({xhrFields: { withCredentials: true}})");
background_contents = re.replace_all(&background_contents, &rep).to_string();
fs::write(&background, background_contents).expect("Unable to write file contents (background.js)");

Expand Down

0 comments on commit c875e58

Please sign in to comment.