HASKI-RAK / HASKI-Backend

This is the Backend System for our HASKI project.
GNU Lesser General Public License v2.1
4 stars 1 forks source link

Support deeper subdomains #70

Closed theUpsider closed 12 months ago

theUpsider commented 12 months ago

Describe the bug When frontend and backend have deeper subdomains, we cannot set a cookie to a nested domain. Therefore we need to use the top domain for the cookie.

To Reproduce Steps to reproduce the behavior:

  1. Backend URL backend.ke.haski.app
  2. Frontend URL ke.haski.app
  3. Try to login.
  4. Cookie does not get set with error of cross domain cookie in network tab

Expected behavior Cookie is set correctly.