Make css files public available

We are including Microsoft Clarity - everything works out fine. The only issue is, that the recordings are broken and the CSS is missing. It seems like they need access to the CSS files from the website (see https://learn.microsoft.com/en-us/clarity/heatmaps/troubleshooting-heatmaps#why-do-i-see-my-website-with-no-styling-just-html-no-css-or-old-styling-in-heatmaps).

I wonder if anyone knows how to make this possible.

I have no experience with this tool, so just a guess:

  • your themes and build path within the VAADIN directive has to be configured to allow external access, e.g. with permitAll
  • not sure how the recording works… but it’s possible that you need a proper cors policy applied to those files