Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(XHR) {
- "use strict";
- var open = XHR.prototype.open;
- XHR.prototype.open = function(method, url, async, user, pass) {
- url = fixURL(url);
- open.call(this, method, url, async, user, pass);
- };
- })(XMLHttpRequest);
- // corrije as URLs de ajax
- function fixURL(url) {
- console.log('fixURL: ', url, ' ', 'http://localhost/public/mockups_php/ajax.php?url=' + encodeURIComponent(url.replace('http://localhost', 'http://infoecedsvextra2.globoi.com')));
- return 'http://localhost/public/mockups_php/ajax.php?url=' + encodeURIComponent(url.replace('http://localhost', 'http://infoecedsvextra2.globoi.com'));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement