Skip to content

Instantly share code, notes, and snippets.

@gaza3g
Created July 10, 2020 10:48
Show Gist options
  • Save gaza3g/e3b10b4ab07d0b953cb4df0bef66e733 to your computer and use it in GitHub Desktop.
Save gaza3g/e3b10b4ab07d0b953cb4df0bef66e733 to your computer and use it in GitHub Desktop.
Some script
<script type="javascript">
fetch("https://api-ourmosques.commonspaces.sg/api_ext/remote_frontend_mosque_retrievebyclusterid.aspx", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://ourmosques.commonspaces.sg/",
"referrerPolicy": "strict-origin",
"body": "app_key=Gzzo3pNdr3S0BOX47k1wT90ih5RmO2Wy&item_id=2",
"method": "POST",
"mode": "cors"
}).then(response => response.json())
.then(data => console.log(data));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment