Access control origin error when i'm calling the getRecords method

Access control origin error when i'm calling the getRecords method

Hi everyone, 

I'm trying to create a script which will create automatically a new task in trello when my customer create a ticket in Zoho support. To do that i need to use the getRecords method of Zoho Support API but this is where my problem starts. Indeed, when i use this url : 


directly into my browser it works well, i get the json return. But when i'm trying to create my request using ajax, this is what i have as return : 

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access

This is my code :

$.ajax({
type : "GET",
dataType : "json",
success : function(response, statut){
console.log($(response));
},
error : function(resultat, statut, erreur){
console.log($(erreur));
},
complete : function(resultat, statut){
console.log("appel terminé");
}
});

Could you tell what i'm doing wrong please, try to find answer on Google but without success... 

I really thank you in advance and waiting for your ideas.

Best,
Quentin 
 

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now