nginx反向代理配置访问后台,基础问题?
本文介绍了nginx反向代理配置访问后台,基础问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
报错截图如下:
XMLHttpRequest cannot load http://localhost:9090/services/user/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access. The response had HTTP status code 403.
反向代理配置如下:
请问,配置哪里出了问题?
解决方案
是跨域问题吧,参见https://segmentfault.com/a/11...
这篇关于nginx反向代理配置访问后台,基础问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文