首页 > 其他 > 详细

跨域访问导致导致当前平台用户掉线的问题

时间:2016-07-11 20:52:53      阅读:193      评论:0      收藏:0      [点我收藏+]

1、问题代码

<form action="http://localhost:8020/social/webcast/meetLiving" method="post" target="_blank" style="display: none;" id=‘{{"sbmt" + $index}}‘>
                        <input type="text" value="${jwtToken}" name="X-BMK-Auth-Token">
                        <input type="text" name="webinar_id" :value="info.webinar_id">
                        <input type="submit">
                    </form>

在本地测试的时候,我起了两个项目,用这种方式访问的时候会导致当前用户退出。

2、解决方式

<form action="http://192.168.8.22:8020/social/webcast/meetLiving" method="post" target="_blank" style="display: none;" id=‘{{"sbmt" + $index}}‘>
                        <input type="text" value="${jwtToken}" name="X-BMK-Auth-Token">
                        <input type="text" name="webinar_id" :value="info.webinar_id">
                        <input type="submit">
                    </form>

将localhost改成ip即可,原因目前不知,我用的是abutu系统,不知道window寸步存在类似问题

跨域访问导致导致当前平台用户掉线的问题

原文:http://www.cnblogs.com/sunjf/p/5661316.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!