// simple fetch request, just add your website just after https://origin.dan13.me/
fetch('https://origin.dan13.me/https://example.com/')
// or by navigating to /fetch?url=URL
fetch('https://origin.dan13.me/fetch?url=https://example.com/')
// you can fetch data based on specific response, just add query param ?response=PARAM
fetch('https://origin.dan13.me/https://example.com/?response=PARAM')
// all your GET params will remain, so you can use
fetch('https://origin.dan13.me/https://dummyjson.com/comments?limit=2')
// you can also send methods (GET, POST, PUT, DELETE, PATCH, HEAD) and body params
fetch('https://origin.dan13.me/https://dummyjson.com/comments/add', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: 'Hello World',
userId: 3,
postId: 5
})
})
// you can also provide your custom proxy
fetch('https://origin.dan13.me/https://dummyjson.com/comments/1', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
body: Updated comment,
// just add proxy param to body
proxy: 'HOST:IP',
// or specify proxy type (by default HTTP)
proxy: 'HOST:IP:TYPE',
})
})
// or use default proxy server by adding ?anon=1 query param, random proxy from https://free-proxy-list.net/, these proxies are not fast and secure, be careful
fetch('https://origin.dan13.me/https://ifconfig.me/?anon=1')