thousands-doctor-54767
02/17/2023, 8:41 PM/api
instead of on a separate port or subdomain? Tried out:
APP_ORIGIN=<http://some.url.com>
API_HOST=<http://some.url.com/api/>
But the frontend seems to handle it inconsistentlyfresh-football-47124
thousands-doctor-54767
02/17/2023, 8:46 PMfresh-football-47124
thousands-doctor-54767
02/17/2023, 8:49 PM/api
to the correct api port, but I'm just having trouble getting the frontend to actually call "/api" consistently. for example, /init
call went to /api/init
, but /organization
and /auth/refresh
did notfresh-football-47124
fetch(getApiHost() + "/auth/refresh", {
thousands-doctor-54767
02/17/2023, 8:59 PM/api/init
is the thing that actually returns the api host env, but I wonder it's getting redirected to the api port because of my proxyfresh-football-47124
thousands-doctor-54767
02/17/2023, 9:11 PMAPI_HOST=<http://some.url.com/_api/>
fresh-football-47124
thousands-doctor-54767
02/17/2023, 9:12 PM