mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
SSL 로그인시 http에서 시도할 경우 발생하는 cross domain 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6769 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
616942c522
commit
c6e637e9e8
4 changed files with 49 additions and 6 deletions
|
|
@ -99,8 +99,20 @@ function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags,
|
|||
var action = this.params['act'];
|
||||
for(i=0;i<ssl_actions.length;i++) {
|
||||
if(ssl_actions[i]==action) {
|
||||
this.xml_path = this.xml_path.replace(/^http:\/\//i,'https://');
|
||||
break;
|
||||
var url = request_uri;
|
||||
if(typeof(default_url)!='undefined' && default_url) url = default_url;
|
||||
var port = 443;
|
||||
if(typeof(https_port)!='undefined' && https_port != 443) port = https_port;
|
||||
var _u1 = xCreateElement('a');
|
||||
_u1.href = url;
|
||||
var targetUrl = '';
|
||||
if(port == 443) targetUrl = 'https://';
|
||||
else targetUrl = 'http://';
|
||||
targetUrl += _u1.hostname;
|
||||
if(port != 443) targetUrl += ':'+port;
|
||||
targetUrl += _u1.pathname;
|
||||
targetUrl = targetUrl.replace(/\/$/,'');
|
||||
this.xml_path = targetUrl + '/index.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -142,9 +154,15 @@ function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags,
|
|||
var j = xCreateElement('input');
|
||||
j.type = 'hidden';
|
||||
j.name = 'xeRequestURI';
|
||||
j.value = location.href;
|
||||
j.value = location.href.replace(/#(.*)$/i,'');
|
||||
fo.appendChild(j);
|
||||
|
||||
var k = xCreateElement('input');
|
||||
k.type = 'hidden';
|
||||
k.name = 'xeVirtualRequestUrl';
|
||||
k.value = request_uri;
|
||||
fo.appendChild(k);
|
||||
|
||||
for (var key in this.params) {
|
||||
if(!this.params.hasOwnProperty(key)) continue;
|
||||
var i = xCreateElement('input');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue