[Answer]-Passing Django Template Variables to Javascript… securely

1👍

There are no real differences when it comes to this whether it be django or any other framework . The problem inherently has to do with the fact that javascript is client side technology.
However yes ajax request is one possible . Others can be minifying/encrypting etc … Anything that you would use for any other framework. I would say you should read these answers to get a better picture:

Secure data in JavaScript

👤dusual

Leave a comment