Reply To: I can't see anything in iOS simulator

#41272

Scott Lang
Keymaster

Looks like there are multiple issues on your site.

1- Access origin not allowed by the site
for this you need to do add this code to your customizer plugin
function add_cors_http_header(){ header(“Access-Control-Allow-Origin: *”); } add_action(‘init’,’add_cors_http_header’);

2- Also we are getting the error from your site [path: plugins/woo-gutenberg-products-block/src/RestApi.php:74]  on API hit too refer to this image: http://prntscr.com/qdeka6 .  Coming from woo-gutenberg-products-block plugin [deactivate the plugin]

To check your API just paste the URL in the browser you will get data: https://scrumdemy.com/wp-json/wplms/v1/course/popular?per_view=5

If you are unable to fix the error share your FTP and admin credentials in private reply we will add code and check the API response