CSPHeader
Summary
CSPHeader parses, manipulates and generates Content-Security-Policy headers.
Description
This library parses, manipulates and generates Content-Security-Policy (CSP) headers.
This is especially useful, when you want to modify a CSP of a web page you display in your app and which needs some JavaScript injected.
You could also build a CSP analyzer or generator app with it.
This is the first release and may contain some rough edges.
Pull requests wellcome!
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
There's nothing to see there, the Example app just serves as a host for the unit tests in Tests.swift
,
so just execute these.
Requirements
Installation
CSPHeader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CSPHeader'
Author
Benjamin Erhart, Die Netzarchitekten e.U. https://die.netzarchitekten.com/
License
CSPHeader is available under the MIT license. See the LICENSE file for more info.