Hello,
I tried to do a minimal working example of an app with Paypal. As a Vue.js project it works perfectly. However, as a Nextcloud app all the CORS requests are blocked (Cross-Origin Request Blocked). I already tried to allow everything possible, so that I’ll get it to work. However, so far it didn’t make a difference. In my PageController.php I have the following function
public function index() {
$response = new TemplateResponse('paypaltest','index',[]);
$csp = new ContentSecurityPolicy();
$csp->addAllowedImageDomain('*');
$csp->addAllowedMediaDomain('*');
$csp->addAllowedScriptDomain('*');
$csp->addAllowedFrameDomain('*');
$csp->addAllowedStyleDomain('*');
$csp->addAllowedConnectDomain('*');
$csp->addAllowedFontDomain('*');
$csp->addAllowedChildSrcDomain('*');
$csp->addAllowedObjectDomain('*');
$csp->allowInlineScript(true);
$csp->allowInlineStyle(true);
$csp->allowEvalScript(true);
$response->setContentSecurityPolicy($csp);
return $response;
}
where I tried to unblock every possible thing. Do you have an idea how I should proceed? I don’t find any relevant information in the internet, and I’m quite new to Nextcloud myself. I’d appreciate any help!