How Can I Emulate A Website Visit Within The html/js Script
The Purpose is To Visit the url without referer or host header because the website/API I visited only gives the json response if the header has no referer/host else if the refer/host is that website's domain
When a user copy the url and paste it on browser it will return the json results but if the url is being redirected the header will have my websites as referer and the website refuses to return results
I also tried opening new tab using js but still it didn't work
<button class="savetodiskbtn" onclick="window.open('https://doodstream.com/?add_my_acc=1&op=videos_json&token=ak1b55nfbm2bbohgqu4dly30')"><i class="fa fa-upload"></i> Save To Disk</button>
If the referer is from another website The website returns As In This Image
And if the user copy the url and open The website returns json (or the website login page if user is not loggedin) As In This Image
I Just Need a js or anything that helps me to emulate the action just like a user copy url and browse it (to be used in a website)