Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下拉树请求接口需要后端放开跨域请求,且没有带token头部 #2837

Closed
yupenglideyupeng opened this issue Jul 30, 2024 · 1 comment

Comments

@yupenglideyupeng
Copy link

版本号:1.6.4-1.7.8都存在
问题描述:

1.使用下拉树请求自定义接口时,需要在后端添加@crossorigin("*") ,否则在前端请求控制台会提示跨CROS跨域错误,(根据request排查请求地址是127.0.0.1)
2.下拉树的请求到后端时没有token数据,下拉选择器的数据是带有token的
获取token目前使用:HttpServletRequest httpServletRequest对象,使用httpServletRequest.getParameter("token");和httpServletRequest.getHeader("token");获取token
3.下拉树目前只能使用复选框,是否可以支持单选或多选两种情况,并且是否可以支持一次将数据都进行传递,避免已经到了最后一级还需要发起一次请求(类似下拉列表的功能)

错误日志&截图:

image
image
image
image

重现步骤:

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供[报表设计配置或SQL脚本]或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@1298191366
Copy link

1、目前需要自行配置跨域
2、已修复,待新版本发布
3、不支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants