1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular 18 Uncaught EvalError: call to Function() blocked by CSP

Discussão em 'Angular' iniciado por ochs.tobi, Outubro 16, 2024.

  1. ochs.tobi

    ochs.tobi Guest

    I upgraded my Angular App to version 18 and getting this error now:

    [​IMG]

    How do I find out where this is comming from?

    [​IMG]

    The comment of this function states that it should only be used with JIT compiler:

    /**
    * Unsafely call the Function constructor with the given string arguments.
    * @security This is a security-sensitive function; any use of this function
    * must go through security review. In particular, it must be assured that it
    * is only called from the JIT compiler, as use in other code can lead to XSS
    * vulnerabilities.
    */


    If I understand correctly this function should only be called with the JIT compiler, which should not be used when I build the application with ng build, right?

    Where does this call come from and how to fix this issue?

    Continue reading...

Compartilhe esta Página