Angular2-jwt: urls without host should be whiteListed by default

Created on 16 Apr 2018  路  2Comments  路  Source: auth0/angular2-jwt

urls without host are not handled by the isWhitelistedDomain method. In fact it should return true when there is no host.

Most helpful comment

Yeah this seems screwy. The documentation even says that this is a supported feature.

For example, the following request assumes that the domain is the same as the one serving your app. It doesn't need to be whitelisted in this case.

this.http.get('/api/things') .subscribe(...)

All 2 comments

Yeah this seems screwy. The documentation even says that this is a supported feature.

For example, the following request assumes that the domain is the same as the one serving your app. It doesn't need to be whitelisted in this case.

this.http.get('/api/things') .subscribe(...)

Fixed in 1.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leosvelperez picture leosvelperez  路  5Comments

mahendra2125 picture mahendra2125  路  4Comments

UlyssesAlves picture UlyssesAlves  路  5Comments

tekkudoc picture tekkudoc  路  5Comments

jaumard picture jaumard  路  5Comments