Sleep Safe 1.0.2
Sleep safe knowing you're guarded against CSRF, XSS, and other web attacks

Guards your BedSheet web app against CSFR, XSS, and other attacks, letting you Sleep Safe at night!

For the most part, Sleep Safe is completely unobtrusive. Simply reference afSleepSafe as a dependecny in your project's and let the sensible defaults monitor your HTTP requests and set protective HTTP response headers.

Note that other Alien-Factory libraries integrate seemlessly with Sleep Safe:

  • Duvet - When injecting scripts and stylesheets, Duvet will automatically adjust the Content-Security-Policy to include a hash of the added content.
  • FormBean - When rendering forms, FormBean will automatically render any CSRF token as hidden inputs.



To install Sleep Safe with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Sleep Safe with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afSleepSafe.pod (86.08 kB)


To use Sleep Safe in a Fantom project, add a dependency to the project's

depends = ["sys 1.0", ..., "afSleepSafe 1.0.2 - 1.0"]



Meta information on the Sleep Safe pod:

Published by
Steve Eynon
Pod file size
86.08 kB
ISC Licence
Built on
27th Mar 2018
Source code
via Mercurial at
Depends on
afBedSheet, afConcurrent, afIoc, afIocConfig, afIocEnv, concurrent, sys
Referenced by
Javascript Compatible

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 2 releases of Sleep Safe: