grafana/pkg/api/pluginproxy
Marcus Efraimsson e210725d3d
DataProxy: Restore Set-Cookie header after proxy request (#16838)
If Grafana rotates the user's auth token during a request to the data 
source proxy it will set the Set-Cookie header with new auth token in 
response before proxying the request to the datasource.
Before this fix the Set-Cookie response header was cleared after the 
proxied request was finished to make sure that proxied datasources 
cannot affect cookies in users browsers. This had the consequence 
of accidentally also clearing the new auth token set in Set-Cookie 
header.
With this fix the original Set-Cookie value in response header is now 
restored after the proxied datasource request is finished. The existing
logic of clearing Set-Cookie response header from proxied request 
have been left intact.

Fixes #16757
2019-05-01 16:32:03 +02:00
..
test-data dsproxy: allow multiple access tokens per datasource 2018-06-12 17:39:38 +02:00
access_token_provider_test.go invalidate access token cache after datasource is updated 2018-09-21 14:24:44 +02:00
access_token_provider.go stackdriver: change info logging to debug logging 2018-09-28 16:16:27 +02:00
ds_auth_provider_test.go Stackdriver: Restructured ds proxy tests 2018-09-14 09:38:16 +02:00
ds_auth_provider.go pkg/util/{ip.go,url.go}: Fix some golint issues 2019-01-28 22:29:20 +01:00
ds_proxy_test.go DataProxy: Restore Set-Cookie header after proxy request (#16838) 2019-05-01 16:32:03 +02:00
ds_proxy.go DataProxy: Restore Set-Cookie header after proxy request (#16838) 2019-05-01 16:32:03 +02:00
pluginproxy_test.go Add check so that header is not sent for anonymous users 2019-03-14 16:33:21 +01:00
pluginproxy.go Add check so that header is not sent for anonymous users 2019-03-14 16:33:21 +01:00