Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

CSP Headers Injection to non-standard _headers; htaccess instead. #118

@inetbiz

Description

@inetbiz

https://github.com/google/eleventy-high-performance-blog/blob/main/_11ty/apply-csp.js#L71
const headersPath = "./_site/_headers";
This forces Netlify use. I'd rather use a modified DOM or SED to .htaccess in the appropriate section comment line append below or replace with a tool like SED. Move the original to a feature branch like discussed on Twitter with @cramforce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions