admin管理员组文章数量:1406937
Currently we have an extjs application where we are calling the /login
API through an Iframe by passing the username as /login?username=YWRtaW5AZWZmaXNlci5jbzZTZzMTg=
and reading this in the superset_config.py file. But since this is not a right practice we want to send the username in any way apart from passing it in the url. Please help in providing the possible ways with which we could achieve this and improve the security.
supersetIframeCmp.el.dom.src = superset_application_url + '?username=' + userNameEncoded;
if (supersetIframeCmp) {
var supersetIframeCmpEle = supersetIframeCmp.getEl();
if (supersetIframeCmpEle) {
}
}
Currently we have an extjs application where we are calling the /login
API through an Iframe by passing the username as /login?username=YWRtaW5AZWZmaXNlci5jbzZTZzMTg=
and reading this in the superset_config.py file. But since this is not a right practice we want to send the username in any way apart from passing it in the url. Please help in providing the possible ways with which we could achieve this and improve the security.
supersetIframeCmp.el.dom.src = superset_application_url + '?username=' + userNameEncoded;
if (supersetIframeCmp) {
var supersetIframeCmpEle = supersetIframeCmp.getEl();
if (supersetIframeCmpEle) {
}
}
Share
edited Mar 5 at 15:30
TylerH
21.1k79 gold badges79 silver badges114 bronze badges
asked Mar 4 at 8:32
Just another objectJust another object
54 bronze badges
8
|
Show 3 more comments
1 Answer
Reset to default -2i think you can use AJAX request from ExtJS to retrieve an authentication token or session. Then set the token in the session and load the iframe without passing sensitive data in the URL.
版权声明:本文标题:javascript - Passing the username through an iframe without passing it in the url in extjs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745055056a2639879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
postMessage
. – C3roe Commented Mar 4 at 8:35