Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › Anyone logged in to API can see the javascript code, your username and password - how to avoid this in Salesforce?

    Tagged: AJAX Toolkit, Apex API, Global Variable, Javascript Code, Login, Password, Salesforce Security, Salesforce Visualforce Page, Session Variable, Username

    • Salesforce® Discussions

      Anyone logged in to API can see the javascript code, your username and password - how to avoid this in Salesforce?

      Posted by Aman on September 22, 2018 at 6:41 PM

      In Ajax toolkit for custom Javascript button, you have to explicitly login to API because global Session variable is not available. In that case it is security vulnerable because anybody logged in can see the javascript code and your username and password. So is there any way to avoid this?

      Parul replied 7 years, 4 months ago 3 Members · 2 Replies
      • AJAX Toolkit
      • Apex API
      • Global Variable
      • Javascript Code
      • Login
      • Password
      • Salesforce Security
      • Salesforce Visualforce Page
      • Session Variable
      • Username
    • 2 Replies
    • shariq

      Member
      September 22, 2018 at 6:42 PM

      We can create a visualforce page with output type as JavaScript. Global session variable is available in VF page. Initialize the global javascript variable in that VF page. include VF page as a javascript file and we are done!

    • Parul

      Member
      September 23, 2018 at 5:45 AM

      Global session variable is available in VF page so when we create a visualforce page with output type as JavaScript first initialize the global javascript variable in that VF page and then include VF page as a javascript file I think then it avoided.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    Why Should you Hire a Salesforce Pardot Consultant: Key Reasons to Know

    Blog in Salesforce

    Are you finding Salesforce Pardot Implementation a daunting task? Don’t worry. We are here with our complete guide on Salesforce Pardot Consultants and why should you hire them.    What…

    Marketing Automation, Marketing Campaigns, Marketing Cloud, Marketing Cloud Functionality, Marketing Qualified Leads
    Codinix Mar 26, 2023
    1,864  Views

    Aura Vs LWC: Why You Should Learn LWC? | Salesforce Lightning Tutorial

    Blog in Salesforce

    What is LWC? LWC stands for Lightning Web Component.   It is the new programming model on which we can build Lightning Components.  It uses the…

    AURA, Aura Components, Aura Programming, Aura Programming Model, Aura Vs LWC
    Pranjal Sep 7, 2022
    3,546  Views

    Salesforce for Healthcare: Hospitals digitalization with Salesforce CRM

    Blog in Salesforce Cloud Platform

    Customer Relationship Management (CRM) in healthcare is highly beneficial as for a hospital chain or a mini-private clinic that provides independent medical practice. Cloud-based healthcare…

    Audit Trails, Business Associate Agreement, Caregivers, Case Team Member, Clinical Studies
    Sparkybit Sep 22, 2023
    1,203  Views

    Popular Salesforce Videos

    Which Objects are in the Salesforce Sales Cloud and Service Cloud?

    Which Objects are in the Salesforce Sales Cloud and Service Cloud?

    Video in Salesforce Cloud Platform

    In this video, We run through some of these diagrams. We'll also discuss some of the particular objects that you'll need to become familiar with as you…

    Salesforce Certifications, Salesforce Sales Cloud, Salesforce Service Cloud, Salesforce Training Videos, Salesforce Consultant
    Abhay Jan 29, 2018
    2,185  Views
    Salesforce Training Videos - Discussion on Admin Concepts

    Salesforce Training Videos - Discussion on Admin Concepts

    Video in Salesforce Training

    A Salesforce Admin is a business leader, deeply knowledgeable about how their company operates, intertwined in making all departments successful through process automations, and thus,…

    Salesforce Administration, salesforce training videos for beginners, Salesforce Training Videos, Salesforce Admin Training, Salesforce Administrator Training
    Shiv Kumar Sharma Jun 12, 2018
    2,151  Views
    Build Multi-Column Screens in Flow Builder - Spring'21 feature for the Salesforce Screen Flows

    Build Multi-Column Screens in Flow Builder - Spring'21 feature for the Salesforce Screen Flows

    Video in Others, Salesforce Training

    Build Multi-Column Screens in Flow Builder (Pilot) You can divide each flow screen into multiple sections and columns to create a visually appealing and effective…

    Salesforce Training, Salesforce Tutorial, Salesforce Learning, Flow Builder, Build Multi-Column Screens
    Shubham Jan 18, 2021
    2,468  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.