Skip to content

Use OWIN instead of HttpModule #1

@dawoe

Description

@dawoe

This week I was researching on how to generate a nonce for my inline script/css block to avoid the use of unsafe-inline and unsafe-eval

I came across this article that uses Owin to do that : https://vcsjones.com/2014/12/17/content-security-policy-nonces-in-asp-net-and-owin/

Maybe this can be used. This would allow for a nonce as well from your package.

Umbraco already has a Owin startup class defined in the web.config

So i guess it would be a matter of inheriting that one and updating the web.config with yours.

Dave

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