GT2/GT2-iOS/node_modules/auth0-js/lib/same-origin.js

15 lines
341 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
/**
* Check for same origin policy
*/
module.exports = same_origin;
function same_origin (tprotocol, tdomain, tport) {
var protocol = window.location.protocol;
var domain = window.location.hostname;
var port = window.location.port;
tport = tport || '';
return protocol === tprotocol && domain === tdomain && port === tport;
}