报错截图如下:

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.


反向代理配置如下:

请问,配置哪里出了问题?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
是跨域问题吧,参见/a/11...
根据错误提示,应该是你的 Apache 没有 services/ 目录的访问权限?
是不是项目路径不在 Apache 默认路径下,是的话要做相应的配置
把location /services/ 改成 location /services