Overcoming Cross-Domain issues

前端 未结 3 1486
日久生厌
日久生厌 2021-01-25 13:03

Are there any ways to overcome the cross domain issues that occur when attempting to retrieve data client-side from another web server in violation of the Same Origin policy?

3条回答
  •  有刺的猬
    2021-01-25 13:35

    Instead of referencing a third party domain directly from the client, call up to your hosting domain and have the server retrieve whatever you're getting from the third party domain.

提交回复
热议问题