Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6688

Add alternative RPC response to substitute the append java script in ajax response

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Some kind of RPC could be added to eliminate 'unsafe-eval' in CSP headers for faster JS execution.

      The idea is the following, instead of doing `target.appendJavaScript("doSomething()")` we could do something like this `target.appendRemoteCall("doSomething", "val1", "val2")`, the JS function could be rendered by the component/behavior as inline <script> (which can be nonced).

      https://github.com/apache/wicket/pull/378

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Kondratev Andrew Kondratev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: