Nextcloud Vue app how to add custom CSP values

Hi,
I am trying to integrate paypal with nextcloud inside my application but it is giving me a

because it violates the following Content Security Policy directive

error on loading of the script. Can someone guide me how I can add custom CSP values to nextcloud inside my vue app or guide me towards a tutorial of such sort.
I read on paypal docs that I need to setup CSP nonce values but unable to find the exact file in which I need to do so.

Any help will be greatly appreciated.
Thank you

on a page of your own app or on a page of another app? for the former you can modify the CSP on the template response