Add a Content Security Policy to the 404 page

Hey there,

Is there a way to add a Content Security Policy to the 404 page:

{“message”:“no Route matched with those values”}

Thanks