I create Item by using Directus SDK I got error Access to fetch from origin 'http://localhost:3000' has been blocked by CORS policy

63 views Asked by At
const handleSubmit = async(e:any) => {
    e.preventDefault();

    await directusClient.request(
      createItem('Subscripber', {
        email: Email,
        phone_number: Phonenum
      })
    )
    
    console.log('success')
  }

I expecting one solution that can help.

0

There are 0 answers