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

Provide easy-to-override headers functions to client-side request emmitors

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 9.6.4
    • None
    • Security Level: Jimmy
    • None

      User Story

      As a developer, I want to secure my application using CSRF tokens, or pass attributes to requests sent by the client to the server (zkau, wcs, wpd, rmDesktop, etc).

      For example, spring security Synchronizer Token Pattern that requires sending a csrf token.

      Acceptance Criteria

      provide an easy-to-override function to pass arbitrary headers key+value pairs to any request sent by client-side

      Details

      Ideally a function that would allow multiple overrides cumulatively (instead of last override erasing previous headers)

      // header is either an empty object or collection, or pass the object or collection already holding existing headers if any (

      zAu.getExtraHeaders(headers){
         headers.put({myKey:'myvalue'});
         return headers;
      }
      

            jumperchen jumperchen
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: