Popularity
0.2
Stable
Activity
0.0
Stable
1
1
0

Description

Rack::ContentSecurityPolicy is a Rack middleware that makes it easy for your Rack based application (Sinatra, Rails) to serve Content Security Policy headers for HTML pages.

This middleware was inspired by the p0deje/content-security-policy middleware and borrows quite a bit of code from that gem. This gem also makes extensive use of the contracts gem to enforce strict type checking and validation on all inputs and outputs. It is designed to fail-fast on errors.

It provides full support for Content Security Policy Level 1/2/3 directives.

Code Quality Rank: L5
Monthly Downloads: 38
Programming language: Ruby
License: MIT License
Tags: Security     Rack     Content Security Policy     CSP     Middleware    

Rack::ContentSecurityPolicy alternatives and similar gems

Based on the "Security" category

Do you think we are missing an alternative of Rack::ContentSecurityPolicy or a related project?

Add another 'Security' Gem