Skip to content

server.js: crossOriginEmbedderPolicy:false has no inline rationale #350

@CryptoJones

Description

@CryptoJones

The helmet config in server.js disables crossOriginEmbedderPolicy alongside the documented contentSecurityPolicy: false. The CSP line has a multi-line rationale comment; the COEP line has none. A future contributor reading the block could either assume it was an oversight (and try to re-enable it) or copy the pattern into a different app without understanding the constraint.

Fix: add inline rationale (Swagger UI loads theme assets cross-origin; helmet's default require-corp blocks anything without explicit CORP/CORS opt-in).

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions