Skip to main content
Deno 2 is finally here 🎉️
Learn more

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.

![](https://brave.com/)