Showing recently watched movies on Letterboxd
Posted on 27 Feb 2026 13u26
Today I tried to create a ‘recently watched movies’ section on my homepage, using the data from my Letterboxd diary.
While developing, everything went fine. I scraped the RSS feed, because they don’t give you an API key for personal projects. Then I could convert the XML data into a JSON object, and use that to populate a list. First problem: CORS… This was easily solvable by using a free proxy like allorigins or cors-anywhere.
I got the section working and decided to upload it to Neocities. Suddenly it just stopped working. In my console I got an error:
Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' data: blob:".
I looked online for a solution, but only then realized that Neocities has really strict Content Security Policies on the free plan. Currently I don’t feel like paying $5/month, so for now I’ll leave out that section.
If one day there’s a lot of support, maybe I’ll reconsider it. I could also make a server function to scrape the RSS feed periodically, and put it into a .json file that could then be stored on the webserver.