Challenge: Enabling CORS

Practice how to enable CORS in a Deno application.

We'll cover the following

Below, you are provided with an initial code. Implement the following tasks in it.

Task 1

Add the CORS dependency in your application in deps.ts.

Task 2

Add the origin string in your application in the createServer function in src/index.ts and src/web/index.ts.

Get hands-on with 1200+ tech skills courses.