fetch("https://chatgpt-search-tool.vercel.app/search", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ query: "Test search" }) }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error("CORS Test Error:", error));