Commit 8584c2d2 by kay delaney Committed by GitHub

DataSourceSettings: Hide custom HTTP header options when access mode is browser (#26481)

Closes #26422
parent 85f3a999
...@@ -210,7 +210,9 @@ export const DataSourceHttpSettings: React.FC<HttpSettingsProps> = props => { ...@@ -210,7 +210,9 @@ export const DataSourceHttpSettings: React.FC<HttpSettingsProps> = props => {
<TLSAuthSettings dataSourceConfig={dataSourceConfig} onChange={onChange} /> <TLSAuthSettings dataSourceConfig={dataSourceConfig} onChange={onChange} />
)} )}
<CustomHeadersSettings dataSourceConfig={dataSourceConfig} onChange={onChange} /> {dataSourceConfig.access === 'proxy' && (
<CustomHeadersSettings dataSourceConfig={dataSourceConfig} onChange={onChange} />
)}
</> </>
</div> </div>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment