Skip to content

Commit

Permalink
refactor(grafana): use credentials instead of withCredentials (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored Feb 19, 2023
1 parent 2fbe579 commit 744e008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class DataSource extends DataSourceApi<GrafanaQuery, GenericOptions> {
}

doFetch<T>(options: BackendSrvRequest) {
options.withCredentials = this.withCredentials;
options.credentials = this.withCredentials ? 'include' : 'same-origin';
options.headers = this.headers;

return getBackendSrv().fetch<T>(options);
Expand Down

0 comments on commit 744e008

Please sign in to comment.