Blair2004 / NexoPOS

The base version of NexoPOS, which is a web-Based Point Of Sale (POS) System build with Laravel, TailwindCSS, and Vue.Js.
https://my.nexopos.com
GNU General Public License v3.0
904 stars 372 forks source link

[click on dashboard link then given error "Unauthenticated." #2103

Closed kapasia24 closed 1 month ago

kapasia24 commented 1 month ago

Describe the bug When I click on any link of Dashboard of NexoPOS in my server then not open link page and given error "Unauthenticated." To Reproduce Steps to reproduce the behavior:

  1. Go to 'Dashboard'
  2. Click on 'Any link'
  3. See error "Unauthenticated"

Expected behavior I want to open link page with expected form without error

Screenshots image

Environment:

Blair2004 commented 1 month ago

Hi can you include a link to your dashboard ? You might exclude the domain.

kapasia24 commented 1 month ago

https://www.dreamjapanedu.com/dashboard/pos User: ** & Passowrd: ****

nzian commented 1 month ago

https://www.dreamjapanedu.com/dashboard/pos User: Deshadmin & Passowrd: codeastro.com

Please check SANCTUM_STATEFUL_DOMAINS in .env files. your web routes all okay. Only api url is the problem. and that happned when stateful domain not same domains as you access from.

Thank you.

Blair2004 commented 1 month ago

https://www.dreamjapanedu.com/dashboard/pos

User: ** & Passowrd: ****

Do not share credentials on a public page.

Blair2004 commented 1 month ago

if you access your website with "www.dreamjapanedu.com" and have your domain defined "dreamjapanedu.com" on your .env you'll have this issue. the same way, if you access your website as dreamjapanedu.com while on the .env it's defined www.dreamjapanedu.com you'll still have that issue. make sure to use one domain (either with the subdomain www or without).

Reopen the thread if it's not fixed.