Lines Matching refs:origin
6 * @fileoverview Implements a check whether an origin is allowed to assert an
13 * Implements half of the app id policy: whether an origin is allowed to claim
14 * an app id. For checking whether the app id also lists the origin,
23 * Checks whether the origin is allowed to claim the app ids.
24 * @param {string} origin The origin claiming the app id.
28 GstaticOriginChecker.prototype.canClaimAppIds = function(origin, appIds) {
29 return Promise.resolve(appIds.every(this.checkAppId_.bind(this, origin)));
33 * Checks if a single appId can be asserted by the given origin.
34 * @param {string} origin The origin.
36 * @return {boolean} Whether the given origin can assert the app id.
39 GstaticOriginChecker.prototype.checkAppId_ = function(origin, appId) {
40 if (appId == origin) {
44 if (/google.com$/.test(origin)) {