#prevent ?email=&password= from attaching in the url bar

13 messages · Page 1 of 1 (latest)

twin vapor
#

Hi how do i prevent this from attaching in my address bar ? It sometimes do not attach but sometimes it do

restive graniteBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

fathom arrow
#

Are you making a GET request to your server and adding those fields into the query params?

twin vapor
#

nope. i am making a post request

#

i am using formik and client side with fetch

fathom arrow
#

Can you share your code?

twin vapor
#

do you want it in github ?

fathom arrow
#

I don't see anything out of the ordinary, using the regular fetch call with POST and putting the user/pass in the body. Can you include a screenshot of what you're seeing

hasty tangle
#

I'm thinking that OP has a form and it doesn't have preventdefault on event listener and as such, adds the query params to the url and reloads page

nova veldt
#

In react hook forma also happend

twin vapor
#

ahhhh probly add prevent default or something so it wont trigger a post or probly add POST method on form probly? it is weird

twin vapor