mirror of
https://github.com/apache/superset.git
synced 2026-04-13 13:18:25 +00:00
Fixing CSRF issues (#2569)
* 0.17.4 * Fixing CSRF issues Since turning CSRF across the site with Flask-WTF, a few POST request have been failing. This PR addresses these issues.
This commit is contained in:
committed by
GitHub
parent
3ed45ab98c
commit
ddeabdd048
@@ -1,18 +0,0 @@
|
||||
import React from 'react';
|
||||
import AlertContainer from 'react-alert';
|
||||
|
||||
export default class AlertsWrapper extends React.PureComponent {
|
||||
render() {
|
||||
return (
|
||||
<AlertContainer
|
||||
ref={ref => {
|
||||
global.notify = ref;
|
||||
}}
|
||||
offset={14}
|
||||
position="top right"
|
||||
theme="dark"
|
||||
time={5000}
|
||||
transition="fade"
|
||||
/>);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import React from 'react';
|
||||
import TabbedSqlEditors from './TabbedSqlEditors';
|
||||
import QueryAutoRefresh from './QueryAutoRefresh';
|
||||
import QuerySearch from './QuerySearch';
|
||||
import AlertsWrapper from './AlertsWrapper';
|
||||
import AlertsWrapper from '../../components/AlertsWrapper';
|
||||
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
Reference in New Issue
Block a user