IONIC-based project resolves cross-domain issues

Use Ionic framework to develop Hybrid App. The boss requires that in addition to using it on mobile phones, its html part can be deployed on the server for web use.

During the test, I encountered the problem of cross-domain Ajax requests (mobile apps will not have this problem because of the whitelist mechanism).

Fortunately, Ionic provides a proxy service that can forward requests to a designated server, which solves the cross-domain problem.

The configuration is as follows:

ionic.project
{“name”: “xxx”, “app_id”: “”, ” proxies”: “path”: “/api/”, “proxyUrl”: “http://api_host/api/”}

p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3850 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.