7afc97c574
Add CSP header to Image Optimization API
14 lines
282 B
JavaScript
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
|