Skip to content

0.2.1

Compare
Choose a tag to compare
@0xTim 0xTim released this 30 Mar 21:16
· 140 commits to master since this release

Vapor Security Headers 0.2.1

This release adds the ability to set a referrer policy on the API Security Headers. The use case for this is for those use the API headers for a server that is using a React front-end with a single page.

The referrer policy can be set with:

let referrerConfig = ReferrerPolicyConfiguration(.strictOrigin)
let securityHeaders = SecurityHeaders.api(referrerPolicyConfiguration: referrerConfig)