CSPHeader parses, manipulates and generates Content-Security-Policy headers.
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!
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.
CSPHeader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CSPHeader'
Benjamin Erhart, Die Netzarchitekten e.U. https://die.netzarchitekten.com/
CSPHeader is available under the MIT license. See the LICENSE file for more info.