aboutsummaryrefslogtreecommitdiff
path: root/src/config/cors.ts
AgeCommit message (Collapse)AuthorFilesLines
2024-10-06Aniwatch API Version 2 (#66)Ritesh Ghosh1-12/+5
BREAKING CHANGE: * chore: remove files that are not necessary for api v2 * test: update existing tests to use pkg * feat: organized aniwatch api envs and add more info about them * feat: update tsconfig to include strict noUnsed params * feat(api homepage): revamp api home page * feat: update wani kuni image * feat: add dot img * feat: use hono cors * feat: use hono rate limiter * build: remove unnecessary deps, add ones needed and update description * feat: add hianime routes and their handlers * feat: update vercel deployment file * docs: update logo and scraper docs, add envs section * feat: update main server file * feat: update peronal deployments caution section
2024-10-04feat: update allowed origins to include wildcard if env not presentRitesh Ghosh1-6/+5
2024-10-01Enhance CORS Configuration for Production SecurityDivyansh1-3/+18
📌 Removed the wildcard (*) origin and replaced it with trusted origins from .env. 📌 Introduced environment variable (CORS_ALLOWED_ORIGINS) for dynamic origin management. 📌 Improved security by blocking untrusted origins and methods. 📌 Enhanced performance with maxAge for caching preflight responses. 📌 No breaking changes, as the fallback origin is set to http://localhost:4000 for development, ensuring compatibility with local setups.
2023-08-20feat(cors): added cors configRitesh Ghosh1-0/+10