Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
detaro
· 9y ago · 0 comments
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.
Comments
[–]
Karupan
9y ago
Second this. A lot of developers will just drop it in without reading the caveats. Just make the origin a mandatory parameter.
[–]
softvar
9y ago
Does that mean, the library should not act when an origin is not specified and throw some kinda message in the console?
[–]
tokenizerrr
9y ago
Yes, a required argument. It's not uncommon. Think API keys.
[–]
fdim
9y ago
Reminds me mongodb being open/unprotected by default, that turned out well...