on my project website I built a cart page and gave it a route in express. I'm doing server side rendering using ejx template engine. when a user hits the cart icon, it makes an axios request to get cart route. the request is made and is reaching res.render (I know that by debugging server side) but the res.render(...) is not working and is not rendering the page.before I used axios I was making direct requests through the element href property. it was working fine and the page is rendered. but then I moved the ajax request to axios in order to be able to send a token in the header and authenticate user. now it is not rendering.anyone knows what the problem here is? any better way to implement this process?
Submitted November 14, 2018 at 05:49PM by Demado
No comments:
Post a Comment