CREATE HTML HEADER "token" FOR BACKEND

My appreciation to all that contributed to this project.
my project can now register successfully, and login a user. BUT my challenge at this level is, i have created a html input for header("token) , to see the user that login but it is not returning any thing rather, error can not post “/user/isme”. please help Glitch

1 Like

Are you trying to submit a header within a form? Why not just send all data in a POST request?

1 Like

yes, am trying to summit a header with form

1 Like

^^^^ Do you need to use headers?

1 Like

i wish to send it in a post, but i tried that and rather it was blocking some of the code in the file

1 Like

Can you explain what you mean here?

i mean i create a router which am using to post both the login and signup , i now included the header in the same post, then it could allow the signup when i remove the code it now work. so i decided to use html form for it instead

1 Like

If you really want to do it, check out this stackoverflow answer (its a bit on the advanced side):

2 Likes

thanks , i appreciate

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.