I have an API in NodeJs where I need to validate a token to let a user pass that middleware and retrieve storeId
.
I have a cookie with ts
key in my localhost :
cookie ts in application dev tools
And I have my AJAX call.
$.ajax({
type:'POST',
dataType: 'JSON',
url: 'http://www.localhost:8090/product',
data: product,
xhrFields: { withCredentials: true },
crossDomain: true,
async: false,
success: result => {
console.log(result)
$('#FormLoading').remove()
}
})
And for some reason it still doesn't send the token but in other pages like homepage dashboard it works. response