API does not work due to CORS

Wappler 3.0.3
Windows 10pro

https://www.mobile.wikihome.com.br/imoveis

Adriano, you have CORS issues with your API call...

Access to XMLHttpRequest at 'https://www.wikihome.com.br/dmxConnect/api/imoveis/listar_imoveis_front.php?' from origin 'https://www.mobile.wikihome.com.br' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

As you are calling it from another domain. You need to fix this in order to be able to use the API from another domain.

right, what else do i have to do?
Can you help me?

That’s not really related to Wappler. I suggest you to check: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS for example to see how to fix the issues.

1 Like

Try this @AdrianoLuiz

<meta http-equiv="X-Content-Security-Policy" Access-Control-Allow-Origin: https://EXAMPLE.COM; Origin: https://EXAMPLE.COM">

May have to play around with variations:

1 Like