skip to Main Content

Google safe browsing API 403 error: The request is missing a valid API key – Jquery ajax

My ajax code is as follows: $("#my_form").submit(function(event){ event.preventDefault(); //prevent default action var api_url = "https://safebrowsing.googleapis.com/v4/threatMatches:find?" var key = 'A..............................s' api_url += key console.log(api_url); var payload = { "client":{ "clientId": "2815.........................apps.googleusercontent.com", "clientVersion": "1.0.0", }, "threatInfo": { "threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], "platformTypes": ["WINDOWS"],…

VIEW QUESTION
Back To Top
Search