Overview

Learn how to set up security in your Nuxt Starter Kit application.

This starter kit uses the nuxt-security Nuxt module to enhance the security of your application. This module provides a set of security headers and best practices to help protect your application from common vulnerabilities and attacks.

It can be configured to suit your specific needs and requirements. The module is designed to be easy to use and integrate into your existing Nuxt application.

Configuration is done in the nuxt.config.ts file, where you can enable or disable specific security features and customize their settings:

nuxt.config.ts
export default defineNuxtConfig({
  modules: ['nuxt-security'],
  security: {
    // options
  }
})

Rate Limiting

By default, rate limiting is disabled in this starter kit:

nuxt.config.ts
export default defineNuxtConfig({
  security: {
    rateLimiter: false
  }
})

I had some problems with the NuxtHub deployment, so I disabled it. Feel free to enable it if you want to use it and have a working solution.