feat(swagger-ui-react): Add withCredentials prop (#7980)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
@@ -35,6 +35,7 @@ export default class SwaggerUI extends React.Component {
|
||||
showExtensions: this.props.showExtensions,
|
||||
filter: ["boolean", "string"].includes(typeof this.props.filter) ? this.props.filter : false,
|
||||
persistAuthorization: this.props.persistAuthorization,
|
||||
withCredentials: this.props.withCredentials,
|
||||
})
|
||||
|
||||
this.system = ui
|
||||
@@ -129,6 +130,7 @@ SwaggerUI.propTypes = {
|
||||
tryItOutEnabled: PropTypes.bool,
|
||||
displayRequestDuration: PropTypes.bool,
|
||||
persistAuthorization: PropTypes.bool,
|
||||
withCredentials: PropTypes.bool,
|
||||
}
|
||||
|
||||
SwaggerUI.defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user