Refused to connect to 'https://example.example.com/example' because it violates the following Content Security Policy directive: "connect-src 'self' blob: stun.nextcloud.com:443"

when external api call from nextcloud application js/main.js file by jquery ajax call then this Error is Showing

jquery.js:9940 Refused to connect to ‘https://temperature.pushbinary.com/get’ because it violates the following Content Security Policy directive: “connect-src ‘self’ blob: stun.nextcloud.com:443”.

Here is ajax call function

$.ajax({
url: “https://example.example.com/get”,

method: "GET", 
dataType: "json", 
 crossDomain: true,
 "headers": {
  "accept": "application/json",
  "Access-Control-Allow-Origin":"*",
  "Content-Security-Policy": "default-src 'self' 'https://example.example.com';connect-src https://example.example.com;" 

},

success: function(data) {
  // Handle the successful response
  console.log(data);

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.