Try using django-cors-headers. It should work. You can check it's documentation for how to use it.
On Tue, Nov 14, 2023, 12:13 AM Lutaaya Jamil <[email protected]> wrote: > You can correct me if I am wrong, but there is something to do with > > Cross-Origin Resource Sharing (CORS) in Django which somehow is set to > prevent unauthorized domains from accessing information from another > domain. So, I suggest if that is the issue, follow the steps that start by > installing the django-cors-header, and add your new url to ALLOWED_HOSTS > list in settings.py > On Monday, 13 November 2023 at 16:31:42 UTC+3 Denny (Python developer) > wrote: > >> >> i need assistance on deployment maybe vercel is not working on my side >> >> On Monday, November 13, 2023 at 4:19:48 PM UTC+3 Vishesh Mangla wrote: >> >>> Use selenium >>> >>> On Mon, 13 Nov, 2023, 18:48 Vishesh Mangla, <[email protected]> >>> wrote: >>> >>>> Don't use postman for gui based login >>>> >>>> On Mon, 13 Nov, 2023, 18:25 Denny (Python developer), < >>>> [email protected]> wrote: >>>> >>>>> i think the the error is from vercel itself assist me my tech guys >>>>> >>>>> On Monday, November 13, 2023 at 3:54:29 PM UTC+3 Denny (Python >>>>> developer) wrote: >>>>> >>>>>> i hosted my django application to vercel and am using free postgress >>>>>> database from railway so when i try to register the user i get an error >>>>>> attached below. when i connect my endpoints with fronted of which am >>>>>> using >>>>>> React i get an error cors origin assist me please >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Django users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/django-users/55866942-048b-4c25-8b81-e4d259dca936n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/django-users/55866942-048b-4c25-8b81-e4d259dca936n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/5ee28b0b-d280-487a-921b-f7f9a02ba637n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/5ee28b0b-d280-487a-921b-f7f9a02ba637n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK37-gN0wN03068N0p_bBf_Y1pRnnk4jkZBV1TzkBPG5Wfck%3DQ%40mail.gmail.com.

