Skip to content
Back

[SOLVED] CORS error only on tables db api After update to 1.8.0

  • 0
  • Resolved
  • 2
  • Self Hosted
  • Flutter
  • Sites
Maryusz
23 Oct, 2025, 06:55

I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, get preferences, I get 403 Forbidden Cors error on endpoints which uses TablesDB apis, I'm missing something?

The app was working perfectly before the update to 1.8.0

TL;DR
Frontend origin wasn't registered correctly or old endpoints were being used. Update the frontend SDK, add frontend origin in Appwrite settings, use new /v1/tablesdb/ endpoints, include X-Appwrite-Project and valid session in requests, check table permissions, verify _APP_DOMAIN, _APP_DOMAIN_TARGET. Issue resolved by adjusting WAF rule that was blocking requests due to mistaking parameters for SQL injection attempts.
23 Oct, 2025, 14:50

Maybe your frontend origin isn’t correctly registered or you’re still using old database endpoints.

23 Oct, 2025, 14:51

In Appwrite Console → Settings → Platforms, add your frontend’s exact origin (including protocol, domain, and port).

Update your frontend SDK or API calls to use the new /v1/tablesdb/... endpoints (not /v1/databases/...).

Ensure requests include X-Appwrite-Project and a valid session or JWT.

Check your table and row permissions — the logged-in user must have access.

If self-hosted, verify _APP_DOMAIN and _APP_DOMAIN_TARGET match your external domain.

4 Nov, 2025, 09:42

The issue was given by our WAF... Thank you for your answer ☺️

4 Nov, 2025, 12:17

Can you tell us what was the issue, and how did you solve it?

4 Nov, 2025, 13:08

The problem was caused by our corporate WAF, which is a Bunkerweb, which saw the parameters of the calls to the new tables API as an attempt at SQL injection, we set the rule on the WAF which now no longer blocks the requests. Hope this explains

4 Nov, 2025, 17:07

Than you for the explanation!

4 Nov, 2025, 17:07

[SOLVED] CORS error only on tables db api After update to 1.8.0

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more