jsencrypt
jsencrypt copied to clipboard
window is not defined in nuxtjs v3
I use Nuxtjs v3 SSR mode
+1
+1 If a friend has solved the same problem, can you point it out in the comments section?
https://stackoverflow.com/questions/69476190/nextjs-project-compilation-fails-with-jsencrypt
@rwaddin did you find a fix for this?
I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering.
or in newer versions you can use useRequestURL()
@rwaddin did you find a fix for this?
I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering.
or in newer versions you can use useRequestURL()
Thanks for your response, did you use this approach with nuxt's api routes or you had a separate backend/api. I'm currently trying to encrypt user password before sending it over to a different server
I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering. or in newer versions you can use useRequestURL()
Thanks for your response, did you use this approach with nuxt's api routes or you had a separate backend/api. I'm currently trying to encrypt user password before sending it over to a different server
in my case it is like this :
maybe you can encrypt the password on the nuxt api server before sending to another server.
Oh okay, i ended up using the cdn instead and it works fine