Vue cross-domain third party api

I would like to ask the veteran drivers, how to solve the cross-domain problem?

  1. is a production environment. ProxyTable in dev environment is not suitable for prd environment
  2. the cross-domain interface is a third-party api (for example, Ali and Qiniu"s oss), have no way to modify the nginx configuration of other companies
  3. the server is a small water pipe, and the forwarding bandwidth through nginx is unbearable. It is hoped that the third party api can be called directly
  4. .

above, I hope my old friend will give me a move.

Mar.25,2021

there is no effective method other than the 3 method you mentioned.


when your application accesses a third-party API, it should not be handled by the front end, it should be handled by the back end.
Cross-domain is limited by browsers.


third-party api is handled by the backend and returned to the frontend, because there is no cross-domain problem in the backend, so you can directly call the API provided by the other party to handle the data return. If the front end to do this, it is not very realistic, cross-domain problems are very troublesome to deal with.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b56b7-299a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b56b7-299a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?