I have a webpage that requires token in order to show the page. From the page, if a user click submit button, I am making an API call using ajax. In the parameter, I am not sure how to pass in token parameter used when showing the page.
For example, my webpage url is http://test.com?token=123
. The page is loaded with button. When the user click that button, I want to make an API call to http://test2.com
but with the token from current page, i.e. 123
.
The reason why I want to do is because when I deploy service with multiple pods. I have an authentication service and every time API is called, it runs authentication using the token.