badgerdoc
badgerdoc copied to clipboard
Failed to make requests to "assets" service
There is an issue with making requests to "assets" service.
Steps to reproduce:
Precondition:
Set WEB_CORS env var to * in .env files and apply it (most probably, .env.example should be updated as well).
Steps:
- Make sure all containers are run.
- Open locally in browser
localhost:8083. - Open Dev Tools -> Network tab (all requests should be shown).
- Login into the app.
- Check
searchrequest.
Actual result:
- Preflight
OPTIONSrequest is failed (no cors setup for "assets" service) - In case if p.1 is fixed, "search" POST request is failed.
Expected result: The issues p.1 and p.1 are fixed: "search" requests work fine (and the rest requests to this service as well).
About p.1 - need to add CORS-related handler to all requests for "assets" service like it's done for "users" service.
About p.2 After investigation with @khyurri, it appeared we have duplicated table names (files). To resolve this, we've just renamed it to assets_files. The goal of this issue to investigate & fix similar issues with table names.