v3.2.1
@salesforce/[email protected]
- Revert mandatory enforcement of Content-Security-Policy headers. Provide middleware as an opt-in replacement. #1528
Example usage:
// your-project/app/ssr.js
import {defaultPwaKitSecurityHeaders} from '@salesforce/pwa-kit-runtime/utils/middleware'
const {handler} = runtime.createHandler(options, (app) => {
app.use(defaultPwaKitSecurityHeaders)
// ...
}
@salesforce/[email protected]
- Use the new opt-in mechanism for enforcing the default security headers required by PWA Kit projects. #1528
Full Changelog: v3.2.0...v3.2.1