Skip to content

Commit 3290189

Browse files
author
Marcin Hoppe
committed
Update README
1 parent a4f03b4 commit 3290189

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@ angular
167167
168168
...
169169
170-
whiteListedDomains: [/api-version-\d+.myapp.com$/i, 'localhost']
170+
whiteListedDomains: [/^api-version-\d+.myapp.com$/i, 'localhost']
171171
});
172172
});
173173
```
174174

175+
Regular expressions should be as strict as possible to prevent attackers from registering their own malicious domains to bypass the whitelist.
176+
175177
### Not Sending the JWT for Template Requests
176178

177179
The `tokenGetter` method can have a parameter `options` injected by angular-jwt. This parameter is the options object of the current request.

0 commit comments

Comments
 (0)