Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4966

support a way to avoid loading third-party javascript library

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 9.5.1.3
    • None
    • Security Level: Jimmy
    • None

      User Story


      As an application developer, I don't want to load an unsed third-party javascript library bundled in zk jar, e.g. vue.js, so that when there is a security vulnerability in these libraries, my system won't be affected.
      For example, if I use <drawer> and don't use <fragment>, zk still load vue.min.js in zkmax.wgt.wpd.

      Acceptance Criteria

      Details

      Since there is a feasible workaround, we can treat this feature as a low priority.

      proposed solution:

      • separate fragment into an independent js package
        only when using fragment will load vue.js.
        But there is a potential risk that someone still can load vue.js by zk js function. Because zk supports to load any wpd dynamically.
      • support a setting to avoid third-party library being loaded

      Use case

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: