unjs / ipx

🖼️ High performance, secure and easy-to-use image optimizer.
MIT License
1.54k stars 61 forks source link

feat(middleware): add `Content-Security-Policy` header #83

Closed pi0 closed 2 years ago

pi0 commented 2 years ago

Using none; prevents referencing to any content and stop possible xss attacks specially on svg files. (related #82)