(use svelte and spring-boot)I'm creating a Find ID screen.
- In the "Find ID screen", the user enters the account information
- Click the OK button to check the data to see if you actually have an account.
- If the data match, go to the "ID Results Screen" with the id value.
Number 3 is the problem.
goto('/login/viewId?loginId=${loginId}`)
in the same manner as aboveI put the id in the url and sent it to the result screen.But I found out that id shouldn't be exposed to url.
As you move to a specific page, the url has a parameter valueIs there any way to make it so that it doesn't expose it?
I wonder if the controller should do the redirection.
(This is the code you wrote.)
async function findId() { const formData = new FormData(document.getElementById('Form')); const response = await Api.post(`/login/IdCheck`, formData); // 1. ID Check if (response.data.resultCode == 'success') { var loginId = response.data.findInfo.loginId; goto(`./Id/IdDisplay?Id=${Id}`);// 2.Query String NO.... }
How to navigate to a specific page