WordPress LMS for Web and mobile › Forums › Ionic App Support › I can't see anything in iOS simulator › Reply To: I can't see anything in iOS simulator
December 20, 2019 at 7:07 am
#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