c9win.
12/04/2022, 5:25 AMauth/session/refresh
. I have gone over my express app and the front end a bunch of times and can't seem to figure out why this would happen. Is it because nginx is blocking it? Or is it because the site is https? Do I need to allow this url or something to pass through in a different config? Or is my code config wrong? Thanks in advance for the help, I really appreciate it.rp_st
12/04/2022, 5:28 AMrp_st
12/04/2022, 5:29 AMrp_st
12/04/2022, 5:29 AMc9win.
12/04/2022, 5:31 AMPOST /auth/session/refresh HTTP/2.0" 405 584
c9win.
12/04/2022, 5:35 AMlocation /login/ {
proxy_pass http://127.0.0.1:3001/;
}
and have the front end pointing to the /login for api domainrp_st
12/04/2022, 5:37 AMrp_st
12/04/2022, 5:37 AMc9win.
12/04/2022, 5:38 AMc9win.
12/04/2022, 5:38 AMrp_st
12/04/2022, 5:39 AMrp_st
12/04/2022, 5:39 AMc9win.
12/04/2022, 5:39 AMrp_st
12/04/2022, 5:40 AMrp_st
12/04/2022, 5:40 AMrp_st
12/04/2022, 5:40 AMrp_st
12/04/2022, 5:40 AMc9win.
12/04/2022, 5:46 AMappInfo: {
appName: "My Demo App",
apiDomain: http://localhost:3001,
websiteDomain: http://localhost:3000,
},
and then for prod i have appInfo: {
appName: "My Demo App",
apiDomain: [url]/login,
websiteDomain: [url],
},
c9win.
12/04/2022, 5:46 AMc9win.
12/04/2022, 5:46 AMhttp://localhost:3001/auth/signin
which is correctc9win.
12/04/2022, 5:47 AM[url]/auth/signin
which is incorrectc9win.
12/04/2022, 5:48 AMc9win.
12/04/2022, 5:57 AMc9win.
12/04/2022, 5:57 AMc9win.
12/04/2022, 5:59 AMrp_st
12/04/2022, 6:07 AMrp_st
12/04/2022, 6:07 AMc9win.
12/04/2022, 6:17 AMappInfo: {
appName: "Name",
apiDomain: "[url]/login",
websiteDomain: "[url]",
},
but it is working right nowc9win.
12/04/2022, 6:17 AMrp_st
12/04/2022, 6:18 AM/login
from apiDomainrp_st
12/04/2022, 6:18 AM/login
to apiGatewayPath on the backend - this is an additional config in the appInfo objectc9win.
12/04/2022, 6:20 AMappInfo: {
appName: "name",
apiDomain: "[url]",
websiteDomain: "[url]",
apiGatewayPath: "/login"
},
c9win.
12/04/2022, 6:21 AMrp_st
12/04/2022, 6:21 AMrp_st
12/04/2022, 6:21 AMc9win.
12/04/2022, 6:21 AM