Bläddra i källkod

dshttpsettings: add field for cookies that should be kept

The ds proxy strips out cookies. Cookie names specified in
this field will not be stripped out. This is the frontend
change only.
Daniel Lee 8 år sedan
förälder
incheckning
592cb386e2
1 ändrade filer med 12 tillägg och 0 borttagningar
  1. 12 0
      public/app/features/plugins/partials/ds_http_settings.html

+ 12 - 0
public/app/features/plugins/partials/ds_http_settings.html

@@ -36,6 +36,18 @@
         </div>
       </div>
     </div>
+
+    <div class="gf-form-inline" ng-if="current.access=='proxy'">
+      <div class="gf-form max-width-30">
+        <span class="gf-form-label width-7">Cookies</span>
+        <bootstrap-tagsinput ng-model="current.jsonData.keepCookies" tagclass="label label-tag" placeholder="Add Name">
+        </bootstrap-tagsinput>
+        <info-popover mode="right-absolute">
+          Grafana Proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.
+        </info-popover>
+      </div>
+    </div>
+
   </div>
 
   <h3 class="page-heading">HTTP Auth</h3>