Fixes wrong check for crossdomain request (added different port check) in beef.net.request JS.
git-svn-id: https://beef.googlecode.com/svn/trunk@946 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -133,7 +133,7 @@ beef.net = {
|
||||
*/
|
||||
request: function(scheme, method, domain, port, path, anchor, data, timeout, dataType, callback) {
|
||||
//check if same domain or cross domain
|
||||
cross_domain = (document.domain == domain) ? false : true;
|
||||
cross_domain = !((document.domain == domain) && (document.location.port == port));
|
||||
|
||||
//build the url
|
||||
var url = scheme+"://"+domain;
|
||||
|
||||
Reference in New Issue
Block a user