Prefixing all URLs in Meteor

时间:2015-08-07 02:00:20

标签: meteor iron-router

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?

1 个答案:

答案 0 :(得分:1)

使用Meteor的随机包:meteor add random并致电Random.id([n]),其中n是您想要的随机字符串的长度。有关详细信息,请参阅documentation