1.0.0
As https://deno.land/x/cors seems pretty complete now I do no longer maintain simplecors.
Repository
Current version released
4 years ago
Versions
Simple Cors
You should only use this if you are not using any authentication / authorization mechanisms.
Usage Example
import { simpleCors } from "https://deno.land/x/simplecors/simple-cors.ts";
import { opine} from "https://deno.land/x/opine/mod.ts";
const app = opine();
app.use(simpleCors)
app.get('/', (req: any, res: any) => {
res.send('Hello World - I accept any request from any origin because I am using simpleCors');
});
Execute Usage Example
deno run --allow-read --allow-net https://deno.land/x/simplecors/usage-example.ts
Support my Open Source Contributions
If you like my work please consider downloading the brave browser via my promotion link: https://brave.com/fan464.