Created
October 15, 2025 01:41
-
-
Save LT-SYAII/333a31cc60f0bf8edad27d0e916c6dae to your computer and use it in GitHub Desktop.
Example for use web Proxy untuk kebutuhan imam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| const PROXY_URL = "https://proxied.syaii.my.id" | |
| // - Example Method GET | |
| const response = await axios.get(`${PROXY_URL}/?url=https://ipwho.is`, { | |
| headers: { | |
| "Request-By": "Bang_Syaii" | |
| } | |
| }).catch(e => e.response); | |
| console.log(response); | |
| // - Example Method [POST, PUT, PATCH, DELETE] | |
| // note: support 2 tipe request cik jadi sesuaikan saja | |
| const response = awai axios.post(`${PROXY_URL}/?url=https://ipwho.is`, { | |
| data: "hy aku syaii (contoh)" | |
| }, | |
| headers: { | |
| "Request-By": "Bang_Syaii" | |
| } | |
| }).catch(e => e.response); | |
| console.log(response.data); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bisa pakai library lain yah asal ngikutin caranya seperti diatas ⏫