Home  >  Q&A  >  body text

vue.js - How to modify cross-domain configuration of nginx?

Written in vuejs, the local host is localhost:8080,
The requested url is http://rap.taobao.org/mockjs/3733/api/v1/man?houseID=&houseitem=&personnel=
So how to modify nginx.conf? It’s the first time I use nginx, and I don’t have time to read the complete nginx document. Thank you everyone

过去多啦不再A梦过去多啦不再A梦2713 days ago641

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 17:18:43

    add_header Access-Control-Allow-Origin *;

    http://www.ttlsa.com/nginx/how-to-allow-cross-domain-ajax-requests-on-nginx/

    reply
    0
  • Cancelreply