Skip to content

Generate SHAs for assets #28

@ealmloff

Description

@ealmloff

Specific Demand

Manganis should support generating SHAs for assets to support Subresource Integrity and prevent XSS attacks

Implement Suggestion

  • Initially, we should expose an option to generate a SHA for an asset in the manifest so that CLIs can retrieve the SHA
  • In the future we might be able to expose this as an option in the macro. We don't want to optimize assets in the macro because it runs in debug mode and the SHA should be generated from the optimized asset. We could cache a SHA or modify the SHA in the linked binary

Related to DioxusLabs/dioxus#1484

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions