Skip to content

lisplizards/lack-middleware-security-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lack-middleware-security-headers

Usage

Wrap app:

(funcall lack/middleware/charset:*lack-middleware-security-headers*
         *app*
         :content-security-policy "default-src 'self'; report-to https://reportcollector.example.com/collector.cgi")

Lack Builder:

(lack:builder
 (:security-headers
  :x-frame-options "DENY"
  :x-xss-protection "0"
  :x-content-type-options "nosniff"
  :x-permitted-cross-domain-policies nil
  :referrer-policy "strict-origin-when-cross-origin"
  :strict-transport-security "max-age=300; includeSubdomains; preload"
  :content-security-policy "default-src https://www.my-site.example.com; report-to https://reportcollector.example.com/collector.cgi"
  :permissions-policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-out-of-viewport=(), fullscreen=(), gamepad=(), geolocation=(self), gyroscope=(), hid=(), identity-credentials-get=(), idle-detection=(), local-fonts=(), magnetometer=(), microphone=(), midi=(), otp-credentials=(), payment=(), picture-in-picture=(), publickey-credentials-create=(), screen-wake-lock=(), serial=(), speaker-selection=(), storage-access=(), usb=(), web-share=(), window-management=(), xr-spatial-tracking=()"
  :additional-headers '(:x-foo "Foo"))
 *web*)

Development

Run tests:

(asdf:test-system :foo.lisp.lack-middleware-security-headers)

Installation

Not in Quicklisp, so clone the repository to "local-projects/".

Author

Copyright

Copyright (c) 2024 John Newton

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published