client based application errors while making a post request

client based application errors while making a post request

hi,
I have made a client based application and i have got access token also but when i use to in my code on header section it gives this error
do i need to have any other token also? in documentation for client based application there are steps for access token only what to do now heres my simple code for refernce

var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "https://www.zohoapis.in/crm/v2/Contacts");

// Create input fields
var fields = ["First Name", "Last Name", "Company Name", "Work Email", "Contact Number", "Mode of Shipment", "Countries You Ship", "Monthly Shipment", "Customer Type", "Where Did You Hear About Us"];
fields.forEach(function(field) {
    var input = document.createElement("input");
    input.setAttribute("type", "text");
    input.setAttribute("name", field.toLowerCase().replace(/ /g, "_"));
    input.setAttribute("placeholder", field);
    form.appendChild(input);
});

// Create checkbox
var checkbox = document.createElement("input");
checkbox.setAttribute("type", "checkbox");
checkbox.setAttribute("name", "agree_to_terms");
var label = document.createElement("label");
label.innerHTML = "I agree to the Zindus terms of use and acknowledge its privacy statements";
form.appendChild(checkbox);
form.appendChild(label);

// Create signup button
var button = document.createElement("button");
button.setAttribute("type", "submit");
button.innerHTML = "Sign Up";
form.appendChild(button);

// Append form to body
document.body.appendChild(form);



// Add event listener for form submission
form.addEventListener("submit", async function(event) {
    event.preventDefault();

    // Get form data
    var formData = new FormData(form);

    // Convert form data to JSON
    var jsonData = {
        "data": [{
             "First_Name":"Jhon1",
  "Last_Name": "clarke",
  "company_name": "ABC Company",
  "work_email": "john.wick@example.com",
  "contact_number": 123456789,
  "mode_of_shipment": "Air",
  "countries_you_ship": "United States",
  "monthly_shipment": "100",
  "customer_type": "New Customer",
  "where_did_you_hear": "Online Advertisement",
 
  "agree_to_terms": true}],
        "trigger": ["approval", "workflow", "blueprint"]
    };
    // Make API request to Zoho CRM Contacts module
        method: "POST",
        headers: {
            "Authorization": "Bearer access_token",
            "Content-Type": "application/json",
        },
        body: JSON.stringify(jsonData),
    }).then(function(response) {
        return response.json();
    }).then(function(data) {
        console.log(data);
    }).catch(function(error) {
        console.error(error);
    });
});

    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 WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • 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