fix(security): allow more strict CSP for SVG assets (#9209)

Refs #7540
This commit is contained in:
Vladimír Gorej
2023-09-14 12:34:13 +02:00
committed by GitHub
parent efe613322d
commit b7f533174a
8 changed files with 605 additions and 62 deletions

View File

@@ -68,7 +68,7 @@ export default class Model extends ImmutablePureComponent {
if(!schema) {
return <span className="model model-title">
<span className="model-title__text">{ displayName || name }</span>
<img src={RollingLoadSVG} height={"20px"} width={"20px"} />
<RollingLoadSVG height="20px" width="20px" />
</span>
}

View File

@@ -123,7 +123,7 @@ export default class Operation extends PureComponent {
<Collapse isOpened={isShown}>
<div className="opblock-body">
{ (operation && operation.size) || operation === null ? null :
<img height={"32px"} width={"32px"} src={RollingLoadSVG} className="opblock-loading-animation" />
<RollingLoadSVG height="32px" width="32px" className="opblock-loading-animation" />
}
{ deprecated && <h4 className="opblock-title_normal"> Warning: Deprecated</h4>}
{ description &&

View File

@@ -4,6 +4,6 @@
import React from "react"
import SwaggerUILogo from "../assets/logo_small.svg"
const Logo = () => <img height="40" src={SwaggerUILogo} alt="Swagger UI" />
const Logo = () => <SwaggerUILogo height="40" />
export default Logo