Comment on BlogOnLemmy - I made my Blog using Lemmy's API
onlinepersona@programming.dev 1 week ago
A blog entry on how it works and what it does at a high level could be nice. I’m not sure what I’m looking at, but there must be some API call to Lemmy and it’s probably happening on the server due to CORS; not sure how this would work just in the browser if the Lemmy instance has CORS setup…
kernelle@0d.gs 1 week ago
I’ve noticed that a more detailed writeup is warranted! So I’ll be working on that.
CORS is enabled on lemmy, you have to send the ‘Origin’ header in order to get the Access-Control headers. Which allows cross-origin for simple requests. No added headers, cookies or other data. So all API calls are made in JS by your browser.