https://github.com/lit-protocol/cors-proxy-amd
https://github.com/lit-protocol/cors-proxy-amd
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lit-protocol/cors-proxy-amd
- Owner: LIT-Protocol
- Created: 2024-02-15T22:38:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T22:54:31.000Z (over 1 year ago)
- Last Synced: 2025-02-04T12:04:18.634Z (over 1 year ago)
- Language: JavaScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is a simple CORS proxy server that uses the cors-anywhere package to proxy requests to a target server. It also caches the results for 7 days.
This is needed because AMD hasn't implemented CORS on their certificate retrieval endpoints. We use these certificates to validate the attestations from the Lit Nodes. Ideally, the user would talk directly to AMD, and not have to use this server, but without CORS support on AMDs side, this is impossible from a web browser.
AMD also has rate limiting on their endpoints. So we added a caching layer to this CORS proxy to prevent us from hitting that rate limit when possible.