Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.
https://astro-shield.kindspells.dev
astro
astro-integration
content-security-policy
hacktoberfest
hacktoberfest2024
javascript
security
subresource-integrity
withastro
xss-protection
- TypeScript 91.8%
- JavaScript 3.1%
- Astro 2.9%
- CSS 2.1%
|
|
||
|---|---|---|
| .github | ||
| .hooks | ||
| .moon | ||
| @kindspells/astro-shield | ||
| docs | ||
| .editorconfig | ||
| .gitignore | ||
| .node-version | ||
| biome.json | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| SECURITY.md | ||
Astro-Shield
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.