We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9a06c commit 8f35ad9Copy full SHA for 8f35ad9
background.mjs
@@ -77,11 +77,15 @@ async function search_on_google_lens(image_url, tab) {
77
image_data_form.set("encoded_image", image_data_processed);
78
image_data_form.set("image_url", `https://${generateRandomString(12)}.com/images/${generateRandomString(12)}`); // Send fake URL
79
image_data_form.set("sbisrc", "Chromium 98.0.4725.0 Windows");
80
- const result = await fetch(
+ const result = await fetchPlus(
81
`https://lens.google.com/upload?ep=ccm&s=&st=${generateRandomString(12)}`,
82
{
83
method: "POST",
84
body: image_data_form,
85
+ headers: {
86
+ "Origin": "https://lens.google.com",
87
+ "Referer": "https://lens.google.com/",
88
+ }
89
}
90
)
91
.then(res => {
0 commit comments