Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tobias-kaerst-software/elysia-helmet

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Elysia Helmet

Helmet helps secure Elysia apps by setting HTTP response headers. This is a port of the official helmet plugin for express.

๐Ÿง‘โ€๐Ÿ’ป Install

bun add elysia-helmet

๐Ÿ‘‹ Getting Started

Here's a sample Elysia app that uses Helmet:

import { Elysia } from 'elysia';
import { helmet } from 'elysia-helmet';

new Elysia().use(helmet()).listen(3000);

For more configuration options, please refer to the original helmet documentation.

There seems to be a bug in the current version of Elysia that prevents the headers from being set correctly. As a workaround, you can use the aot flag must be set to false.

new Elysia({ aot: false }).use(helmet()).listen(3000);

Refer to this Issue.

๐Ÿ”“ License

This software ist distributed under the MIT license. For more information you can have a look at the license file.

About

Help secure Elysia apps with various HTTP headers ๐Ÿ”’

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.