idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.27k stars 1.89k forks source link

No authentication token, authorization denied #1049

Closed spideyO0 closed 5 months ago

spideyO0 commented 6 months ago

Describe the bug No authentication token, authorization denied To Reproduce Steps to reproduce the behavior:

  1. deploy the backend on render
  2. start the frontend by npm run dev:remote

Expected behavior no authentication token cookie token not setting

Desktop (please complete the following information):

Additional context I tried console logging the token in backend/src/controllers/middlewaresControllers/createAuthMiddleware/isValidAuthToken.js

its giving token as undefined

only happening when deployed backend on cloud not on localhost

akshayneje2823 commented 6 months ago

Can I work on this

spideyO0 commented 6 months ago

Yeah if there is any fix please let me know faced this issue with dev and demo branch too when deployed the backend same issue

achrarajeev commented 5 months ago

@spideyO0 Please try #735 May Be Duplicate

spideyO0 commented 5 months ago

@achrarajeev yeah solved but in a different way I just configured cookies as samesite: none and added withCredentials : true