/api/login return loggedin:false
-
Which is weird since I am logged in to localhost:4567 in the same browser tab and have the express cookie. Is there a config issue I am not considering?
ACP:
Access-Control-Allow-Origin
Access-Control-Allow-Origin Regular Expression
Set to 127.0.0.1Access-Control-Allow-Credentials
truevar url; if(process.env.NODE_ENV === 'production') url='tbd'; else url='http://localhost:4567/api/login'; axios.get(url,{credentials: 'include',withCredentials: true}).then(response =>{ console.log(response.data); }).catch(err =>{ console.log(err); })
Copyright © 2024 NodeBB | Contributors