CORS error in cordova app

Getting this error:
jquery.js:2 Refused to connect to ‘https ://’
because it violates the following Content Security Policy directive: “default-src ‘self’ ‘unsafe-inline’
data: gap:”. 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’ ‘unsafe-inline’ data: gap: https ://; style-src ‘self’ ‘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.