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
I sometimes see that a cookie-string of ngapimockid=45674567567;ngapimockid=56767856785678 is received by ngapimock-core.
Thus somehow two same named cookies gets added to the request. Probably this is because we use the Webpack-proxy to transport the ngapimock-commands to the ngapimock-app. Thus in our situation the "app-resources", "app-api-calls" and "mock-commands" are all served on the same host. This is probably something specific for our situation.
In Cypress each "mock-command" writes a "wrap {object}" to the Cypress log:
When i click this log-entry in the browser-console the object is logged. In this i'm able to see that a Cookie and a cookie header is set. The casing differs and i suspect some components ignores this casing-difference and this results in the two cookie-values.
I'm pretty sure the above situation is created by this line:
@GrumpyMeow I have been trying to dive into some logs, but I cannot find anywhere in both cypress and apimock where the cookie is added with a lowercase name.
Hi Midas,
I sometimes see that a cookie-string of
ngapimockid=45674567567;ngapimockid=56767856785678
is received by ngapimock-core.Thus somehow two same named cookies gets added to the request. Probably this is because we use the Webpack-proxy to transport the ngapimock-commands to the ngapimock-app. Thus in our situation the "app-resources", "app-api-calls" and "mock-commands" are all served on the same host. This is probably something specific for our situation.
In Cypress each "mock-command" writes a "wrap {object}" to the Cypress log:
When i click this log-entry in the browser-console the object is logged. In this i'm able to see that a
Cookie
and acookie
header is set. The casing differs and i suspect some components ignores this casing-difference and this results in the two cookie-values.I'm pretty sure the above situation is created by this line:
cypress-plugin/src/cypress.plugin.ts
Line 142 in 4ef8b78
The text was updated successfully, but these errors were encountered: