I would like to prefix all URLs in my Meteor app using Iron Router with a random constant string. I am thinking it might make it more secure. How do I do it?
答案 0 :(得分:1)
使用Meteor的随机包:meteor add random
并致电Random.id([n])
,其中n
是您想要的随机字符串的长度。有关详细信息,请参阅documentation。