Introduction to Extracting Configurations
Explore key production best practices in Deno by learning how to enable CORS and HTTPS, securely extract configuration and secrets from your codebase, and run Deno code directly in the browser for shared frontend and backend functionality.
We'll cover the following...
We'll cover the following...
Background
Previously, we pretty much wrapped up our application’s features. We added authorization and persistence, ending up with an application connected to a MongoDB instance. In this chapter, we’ll focus on some known best practices that are standard in production applications: basic security practices and dealing with configuration.
First, we’ll add a couple of basic security features to our application programming interface (API), starting with cross-origin resource ...