javascript - Cookies blocked because host

one text

I'm having a problem in a ionic proyect, where a proxy is used to connect to the API when debugging in the browser. This application connects to an API that has a PHPSESSID cookie for the host myaplication.domain, but Chrome thinks the host is localhost because of the proxy, rejecting the cookie with the message: This set-cookie was blocked because its domain cookie was invalid with regards to the current host url

Is there a setting in chrome, or some way in ionic to allow cookies from other host? It is just for development and I don't have control over the API so solutions require to be client-side.

Source