We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f03b4 commit 3290189Copy full SHA for 3290189
README.md
@@ -167,11 +167,13 @@ angular
167
168
...
169
170
- whiteListedDomains: [/api-version-\d+.myapp.com$/i, 'localhost']
+ whiteListedDomains: [/^api-version-\d+.myapp.com$/i, 'localhost']
171
});
172
173
```
174
175
+Regular expressions should be as strict as possible to prevent attackers from registering their own malicious domains to bypass the whitelist.
176
+
177
### Not Sending the JWT for Template Requests
178
179
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