Tiny proxy server to allow all origins to fetch the Pinboard API.
The Pinboard API doesn't have CORS enabled, so you can't make API calls directly from the browser (for context, here's an old thread on the subject).
This tiny Vercel serverless function acts as a proxy to the Pinboard API allowing requests from all origins.
Deployed at pinboard-api-proxy.vercel.app.
- Fork this repo
- Link it to your Vercel dashboard
- That's it 👍
Call /api/*
just like if it was the Pinboard API.
For example, /api/v1/posts/all?format=json
will be proxied to https://api.pinboard.in/v1/posts/all?format=json
.
Released undet the MIT license.