CORS middleware for Astro.js applications. 🚀
Astro fans, this is designed to help you tackle CORS issues in the browser when using Astro.js. With AstroCors, you no longer have to face CORS errors when developing Astro.js applications. 😄
npm install astrocors
import { corsMiddleware } from "astrocors";
Use it in your Astro.js application, in src/middleware.js
export default corsMiddleware;