Challenge: Enabling CORS
Practice how to enable CORS in a Deno application.
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
.
Access this course and 1400+ top-rated courses and projects.