Document policy violation: js-profiling is not allowed in this document in reactjs application
Steps to Reproduce
-
Create the reactjs application
-
Create the project on the sentry dashboard and configure the project including the profiling
-
Set the document policy on the backend i.e. if you are using expresjs you can set as app.use((_req, res, next) => { res.set("Document-Policy", "js-profiling"); next(); });
-
reload the project to see if the profiling has been set up on the sentry -> project-> profiling section, then check the browser console.
Expected Result
- With the clear instructions on the https://docs.sentry.io/platforms/javascript/guides/react/profiling/ i would expect the profiling to work on reactjs project
Actual Result
Document policy violation: js-profiling is not allowed in this document in reactjs application
Additional Info
No response
Assigning to @getsentry/support for routing ⏲️
@AbhiPrasad would really appreciate it if you could take a look.
Routing to @getsentry/product-owners-sdks-web-frontend for triage ⏲️
Hey @e-kibet thanks for writing up an issue!
This error occurs because the js-profiling document policy was not set properly. Could you check your chrome dev tools and make sure the header is being set?
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀