Skip to content

Angular integration fails due to CSP violation #1187

Description

@jonesjul

Description

We attempted to implement the AsyncAPI React component in an Angular project following the documentation:
“Using in other technologies” → “Using in Angular”
https://github.com/asyncapi/asyncapi-react/blob/master/docs/usage/angular.md

When running the implementation, we encounter the following error

Image

Current Workaround

The component only works if we relax the Content Security Policy (CSP) by adding 'unsafe-eval' to the script-src directive.

Questions / Request for Guidance

  • Is there a plan to address this issue so that 'unsafe-eval' can be avoided?
  • Is there a recommended workaround that does not require relaxing the CSP?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions