-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEARCH_TIME_EVENT
is unusable due to plausible and CORS limitations
#3775
Comments
Since it's in staging I don't think reverting the commit should be prioritised over applying the recommended fixes that you have already documented. |
The fixes might take longer than anticipated, and the fix would also depend on the API being deployed, so I think it would be safer to revert. |
This isn't fixed, right? Reopened just in case. We've just reverted the thing causing the issue. @obulat would a simple solution be to wrap We don't need |
This issue was split into two. I think it's best to fix the underlying issues, and then re-open the original PR to close this issue
I guess we would have to wrap
So, I think we could use something like
I did not know that we mainly want to measure the client side requests, thank you for this context. |
Hopefully that lets us find a "good enough for now" aspect of this, and we can address being able to send events on the server side later on, when we actually need them. It's an important limitation to document, though... |
I lowered the priority here because the PR that was breaking the app was reversed. |
Description
vue-plausible
only provides client-side integration, and we cannot send events from the server:https://github.com/moritzsternemann/vue-plausible/blob/56d05277e4082183c700e9f0df4e82b711a00f07/src/nuxt-module.ts#L22-L27
Note: this has never been the problem before because we never recorded server-side events.
On the other hand, on the client side, due to CORS limitations, we cannot get the required headers (
["date", "cf-cache-status", "cf-ray"]
). Browser limits JS access to only"cache-control", "content-type" and "last-modified"
1.Reproduction
Additional context
The immediate fix for this is to revert the commit in question. This fix is critical because the app's server-side rendered search became unusable.
To correctly send the search time event, we the following two issues need to be opened, with a lower importance label.
Server
Client
Footnotes
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#access-control-expose-headers ↩
The text was updated successfully, but these errors were encountered: