safak / youtube2022

Season 2 on Lama Dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to hit the API :

shetty-nithin opened this issue · comments

Hello,
Thank you so much for the wonderful video first of all. Please help me with this issue, I'm stuck with this for the last 10 days, I did not get any help from the internet, not even from ChatGPT.

I have added many other features to the same project.
https://github.com/shetty-nithin/socialife_backend
https://github.com/shetty-nithin/socialife_frontend

My issue: Im trying to deploy the project on netlify, but im facing an issue.

  1. When both the front end and back end are running on the local host, both are communicating. I'm able to use the website.
  2. When the front end is deployed and the back end is running on the local host, then also it's working fine.
  3. But when the backend is deployed and the front end is running on the local host OR when both are deployed im not able to make the request from the front end

environment variables :
CLIENT_URL = https://socialife-api.netlify.app/

Frontend : https://socialife.netlify.app/login
Backend: https://socialife-api.netlify.app/
This is the error I'm getting when I try to login
image

Yeah , I am not able to register in your app

Hey man,
Just wanted to ask; how did you overcome this error while creating the strapi??

image