December 27, 2019 at 12:58 pm #41673
Issue Description: The App can be loaded successfully to the web browser. But the app fails to link to the host page.
There is an error message display at the Browser Developer tool.
The Error message is as follows:
Access to XMLHttpRequest at ‘https://www.bookuai.com/wp-json/wplms/v1/track/?client_id=rIvWAlWFKvYrm6qnUsl1jUJ&access=0’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
*https://www.bookuai.com/ is the host webpage urlDecember 27, 2019 at 2:03 pm #41674
AnonymousInactiveThis reply has been marked as private.December 28, 2019 at 1:18 am #41688
AnonymousInactiveDecember 28, 2019 at 12:21 pm #41705
The CORS are most likely returned in response. If you’re using caching plugin w3tc then make sure it is not adding any .htaccess code to remove cors.
On many sites using w3tc we found this issue.
I will need admin credentials to further debug this.December 28, 2019 at 12:39 pm #41707
AnonymousInactiveThis reply has been marked as private.December 30, 2019 at 6:23 am #41738
After configuring your site at our end we are getting an error on API request and access-control-origin error both. refer this:http://prntscr.com/qhduuu
We need your c-panel to check the PHP error log. Please share it in a private reply.December 30, 2019 at 11:06 am #41764
AnonymousInactiveThis reply has been marked as private.December 30, 2019 at 11:30 am #41772
The issue caused by third party plugin WooCommerce Blocks,Deactivate and check
Refer this working app:http://prntscr.com/qhhcqwDecember 31, 2019 at 12:29 am #41836
AnonymousInactiveThis reply has been marked as private.December 31, 2019 at 5:16 am #41837
The issue is caused by third-party plugin.
Your app already working please deactivate plugin: Then try to run your app.
Refer this image of working app from your site:http://prntscr.com/qhhcqw
Same thing you have to do for your local setup.
For build update your config.xml like this http://prntscr.com/qhsegc
code: <access origin=”*” />December 31, 2019 at 5:29 am #41840
AnonymousInactiveThis reply has been marked as private.
- You must be logged in to reply to this topic.