3 ms·
Then don't have a default that works without doing so. Really, defaults like this lead to "works, ship it" and totally unnecessary cases of vulnerable software.
by detaro 10y ago
Then don't have a default that works without doing so. Really, defaults like this lead to "works, ship it" and totally unnecessary cases of vulnerable software.
- Karupan 10y agoSecond this. A lot of developers will just drop it in without reading the caveats. Just make the origin a mandatory parameter.
- softvar 10y agoDoes that mean, the library should not act when an origin is not specified and throw some kinda message in the console?
- tokenizerrr 10y agoYes, a required argument. It's not uncommon. Think API keys.
- fdim 10y agoReminds me mongodb being open/unprotected by default, that turned out well...