Skip to content

Instantly share code, notes, and snippets.

@fadyosman
Created September 23, 2022 14:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadyosman/cf71308239edd078b25450eda5329075 to your computer and use it in GitHub Desktop.
Save fadyosman/cf71308239edd078b25450eda5329075 to your computer and use it in GitHub Desktop.
Code for testing initiators
<html>
<head>
<title>
Devtools : initiators
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"
integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<script src="main.js">
</script>
</body>
</html>
const settings = {
"async": true,
"crossDomain": true,
"url": "https://google-search3.p.rapidapi.com/api/v1/search/q=elon+musk",
"method": "GET",
"headers": {
"X-User-Agent": "desktop",
"X-Proxy-Location": "EU",
"X-RapidAPI-Key": "fakekey",
"X-RapidAPI-Host": "google-search3.p.rapidapi.com"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment