rsnext/test/integration/production/pages/svg-image.js
Steven 7afc97c574
Add CSP to Image Optimization API (#28620)
Add CSP header to Image Optimization API
2021-08-30 16:51:47 +00:00

14 lines
282 B
JavaScript

import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<h1>SVG with a script tag attempting XSS</h1>
<Image id="img" src="/xss.svg" width="100" height="100" />
<p id="msg">safe</p>
</div>
)
}
export default Page