You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For whatever reason this only happens on the very first request after starting the dev server. A reload after changed code is fine.
If that first request gets through once it seems that all following requests are fine.
Part of me does suspect the auth setup, but I have no proof.
This is not an issue with the built version of the app, there it works for every request, including the first.
Which @angular/* package(s) are the source of the bug?
platform-server
Is this a regression?
Yes
Description
During SSR both the
REQUEST
andREQUEST_CONTEXT
arenull
.Even though the
PLATTFORM_ID
is in fact server.The log I get is
For the following code
That code is at https://github.com/evorto-app/app/blob/ce0e4f7cc83f97cef3757229b08eb4b69545ac4a/src/app/core/auth-token.interceptor.ts#L8-L14
I call SSR like https://github.com/evorto-app/app/blob/ce0e4f7cc83f97cef3757229b08eb4b69545ac4a/src/server/app.ts#L115-L127
Happy to provide more information, I am very sure this used to work.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: