...

/

Solution: Enabling CORS

Solution: Enabling CORS

Review the solution for the Enabling CORS challenge.

We'll cover the following...

Task 1

Export the oakCors dependency from deno.land in deps.ts using the following code:

Press + to interact
export { oakCors } from "https://deno.land/x/cors@v1.2.1/oakCors.ts";

Task 2

In the src/web/index.ts file, first change the configuration object in the createServerDependency and add allowedOrigins: string[]. Next, update the ...