Angular Separate Domain Drupal simple web app

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
lastlink's picture

I have been working on a simple web app trying to decouple a cms to use a different front end on different domain.

The goal of the app was to be a gameroom lobby that would display gameservers, how many players they had, a link to them. These would then be editable by the gameserver itself w/ players having to login to see the lobby.

I was able to setup a drupal enabled the api, test the calls through postman and vscode rest client. I got login, logout, create, and update content to work from these clients.

When I moved onto the front end I had a bunch of difficulties w/ cors, I was able to solve those, however I then discovered I couldn't figure out how to use drupals cookie authenticator that postman apparently created when logging and my app didn't. My angular js app could login and return a response w/ the login and logout token, but I was unable to persist the cookie. From some research i've noticed that people are using angular on the same domain as their drupal to avoid cors issues and maybe the COOKIE issue. Any help would be appreciated on getting cookie authentication to work.

Here are my instructions for setting up the drupal restful api.
https://tree.taiga.io/project/lastlink-1-game-server-lobby/wiki/drupalap...