diff --git a/src/main.rs b/src/main.rs index f3a26cb..209bf34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,7 @@ fn patch(path: PathBuf, _proxy: Option) { // 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)");