Re:How do dat:// sites interact with servers?
by pfraze on Tuesday June 12, 2018 @02:35PM
(#17296436)
My site has the Access-Control-Allow-Origin:* header set. Try the same thing on the Beaker site in the devtools for https://example.com.
fetch('https://beakerbrowser.com/dat.json')
.then(response => response.text())
.then(str => console.log(str))
It should fail
Open the console in an empty Chrome window and paste this:
You'll get your RSS feed, no CORS tricks required.