'Sending/retrieving Http-only cookies between subdomains?

I need to send a http-only (abc.test.com) cookie in next-js api page to the api server (api.test.com) with axios, they are both subdomains of test.com, but different, can the cookie be sent/shared between the subdomains?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source