How to Fix CORS Errors in Next.js and Vercel

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 18

  • @JessiOwe
    @JessiOwe 5 місяців тому

    Thank you so much, this was the only video that helped me, I don't speak English but I understanded everything, if it doesn't works, probably your component or fetch/axios petition is not ok. Check it and fix it guys!

  • @Felix.942
    @Felix.942 Рік тому +1

    Worked. thanks a lot

  •  Рік тому

    this might be for api requests but not for request from client side

    • @thefullstackproject
      @thefullstackproject  Рік тому +1

      If your client is the same nextjs project you dont have a cors issue I guess.

    •  Рік тому

      Thank You for answer! I was in the process of rage, because I could not find the problem I was facing..and wanted to find solution everywhere - then it was just simple secretkey problem. DO was misleading with fake generated secret - so I used that and could not figure out why all is failing... :) that was sick.

    • @bunnyvms1899
      @bunnyvms1899 Місяць тому

      ​@@thefullstackprojectSir what about react js + vercel application

  • @Igor-uz3vn
    @Igor-uz3vn Рік тому +4

    It's doesn't work(

  • @aezazali710
    @aezazali710 Рік тому +3

    not worked

  • @compass4048
    @compass4048 Рік тому

    not work! can u update fix cors

  • @codesnippet_by_anabel
    @codesnippet_by_anabel Рік тому +1

    Unfortunately none of this works

    • @thefullstackproject
      @thefullstackproject  Рік тому +1

      Sad to hear anything you need to know?

    • @codesnippet_by_anabel
      @codesnippet_by_anabel Рік тому +1

      @@thefullstackproject I was actually able to fix the issue. Just used the Next.js code snippet for enabling CORS and placed it in both frontend and backend files with different sources. Thank you for checking in!

    • @jeremymunroe
      @jeremymunroe Рік тому

      ​@@codesnippet_by_anabelcould you pass the resources please

  • @MarwalSoftwares
    @MarwalSoftwares Рік тому

    Sir not work

  • @Deva-m4x
    @Deva-m4x 4 місяці тому

    nonsense, waste of time