Thanks a lot for your help ! You are the proof humans are still smarter than machines (I spent 2 days on this problem and chatGPT cound't find any working solutions)
Well it's just some kind of memory, you input some text, when you save it labels it, and when you type some keywords in the searchbar, the most relevant texts shoudl show up
abnar.up.railway.app/:1 Access to XMLHttpRequest at 'https://abnar-backend.up.railway.app/save' from origin 'https://abnar.up.railway.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
abnar.up.railway.app/:1 Access to XMLHttpRequest at 'https://abnar-backend.up.railway.app/save' from origin 'https://abnar.up.railway.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.