Skip to content

Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.

License

Notifications You must be signed in to change notification settings

kindspells/astro-shield

Repository files navigation

Astro-Shield

NPM Version NPM Downloads GitHub commit activity GitHub Actions Workflow Status Socket Badge OpenSSF Best Practices

Introduction

Astro-Shield helps you to enhance the security of your Astro site.

How to install

# With NPM
npm install --save-dev @kindspells/astro-shield

# With Yarn
yarn add --dev @kindspells/astro-shield

# With PNPM
pnpm add --save-dev @kindspells/astro-shield

How to use

In your astro.config.mjs file:

import { defineConfig } from 'astro/config'
import { shield } from '@kindspells/astro-shield'

export default defineConfig({
  integrations: [
    shield({})
  ]
})

Learn more

Other Relevant Guidelines

Main Contributors

This library has been created and is being maintained by KindSpells Labs.

License

This library is released under MIT License.