문제

I am using the Ribbit javascript api and trying to figure out how not to show the secrety key and all those application settings which are set in a code block using a Ribit.init function:

Ribbit.init("consumerKey");

도움이 되었습니까?

해결책

You can't. All JS is public viewable.

Unless you want to base64 encode the key on the server side and modify the init function to decode it first thing. It's easily reversible, but it will obfuscate it a bit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top