CORS error in cordova app

Getting this error:
jquery.js:2 Refused to connect to ‘https ://my-app.com/webcontrol/activatoken.php’
because it violates the following Content Security Policy directive: “default-src ‘self’ my-app.com ‘unsafe-inline’
data: gap: https://ssl.gstatic.com”. Note that ‘connect-src’ was not explicitly set, so ‘default-src’ is used as a fallback.

My policy is set as follows:
http-equiv=“Content-Security-Policy” content="default-src ‘self’ my-app.com ‘unsafe-inline’ data: gap: https ://ssl.gstatic.com; style-src ‘self’ my-app.com ‘unsafe-inline’ ‘unsafe-eval’; media-src *;

Can´t find the error. Could anyone please help me out? Thanks in advance.

you need to enable cors on the backend. its your backend problem, not cordova nor f7
also check the csp maybe its https or http

Thanks for your response!!

header(‘Access-Control-Allow-Origin: *’);
header(“Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept”);
header(‘Access-Control-Allow-Methods: GET, POST, PUT, DELETE’);

This is what I have on my backend.