I have a file called token.php that generates a token:
token.php
echo json_encode(Braintree_ClientToken::generate());
And I have a file that takes that token with AJAX and executes later codes:
$.ajax ({
url: "token",
type: "get",
dataType: "json",
success: function (data) {
$(".inputDisabled").show();
...
Everything works fine, but if a visitor to my page goes to mipagina.com/token
you will see the token. I need to hide it in some way, but without affecting the GET.
Is this possible and how should I do it? If it is not possible, could you give me an alternative solution?