Refine Devtools: Cookie “__cf_bm” has been rejected for invalid domain.

I'm getting errors for all of the assets that refine devtools loads
3 Replies
kapa.ai
kapa.ai3w ago
Hi @jthoward. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, I can address your question about the Refine Devtools cookie issue and asset loading errors. It appears that you're experiencing issues with Refine Devtools, which is a development tool provided by Refine to help monitor queries, mutations, and inspect components during development. The cookie rejection error you're seeing ("__cf_bm" has been rejected for invalid domain) and the asset loading errors are likely related to domain configuration issues. This can happen when you're running your application on a domain or port that's different from what Refine Devtools expects. Here are a few potential solutions and things to check: 1. Make sure you're running Refine Devtools on the correct port. By default, it runs on port 5001. If you've changed this, you need to update your configuration accordingly Refine Devtools docs (https://refine.dev/docs/guides-concepts/development/#using-devtools). 2. If you're using a custom domain or port for your development environment, you may need to configure the Devtools provider in your app. You can do this by setting the url prop on the DevtoolsProvider component Refine Devtools docs (https://refine.dev/docs/guides-concepts/development/#using-devtools):
<DevtoolsProvider
url="<http://your-custom-domain-or-port">
>
{/* ... */}
</DevtoolsProvider>

<DevtoolsProvider
url="<http://your-custom-domain-or-port">
>
{/* ... */}
</DevtoolsProvider>

3. If you're using Docker or a similar containerized environment, you might need to adjust your network configuration to ensure that the Devtools server is accessible from your app Refine Devtools Enterprise docs (https://refine.dev/docs/enterprise-edition/devtools/). 4. Ensure that you're using the latest version of @refinedev/devtools. There have been recent updates to address issues with authentication flow and cookie handling GitHub issue comment (https://github.com/refinedev/refine/issues/5753#issuecomment-1944037516). If these steps don't resolve your issue, it might be helpful to check your browser's console for more specific error messages. Also, ensure that your development environment's security settings aren't blocking the Devtools server connections. Remember, Refine Devtools is only meant for use in development mode and won't be included in your production build Refine Devtools docs (https://refine.dev/docs/guides-concepts/development/#using-devtools). If you continue to experience issues after trying these solutions, you may want to reach out to the Refine community or open an issue on their GitHub repository for more specific assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@358015232096075787> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
stormy-gold
stormy-gold3w ago
Hello @jthoward, thanks for reporting the issue, I will investigate

Did you find this page helpful?