Toggle Side Panel

  • Blogs
  • 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
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • 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
    • 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, 11 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!

    • [adinserter block='9']
    • 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

    Popular Salesforce Blogs

    Inline edit support in custom component in Salesforce Lightning

    Inline Edit Support in Custom Component in Salesforce Lightning

    Blog in Lightning, Salesforce customization, Salesforce Implementation

    If you have a situation where you need to create a custom component with inline edit functionality then this article will help you. However inline…

    AURA, ChildInlineEdit, Custom Component in Salesforce, Inline Edit in Salesforce, LightningInlineEditCltr
    Ajay Prakash Jan 15, 2018
    26,853  Views

    5 Things To Know Before Implementing Salesforce Sales Cloud

    Blog in Salesforce Implementation

    Salesforce Sales Cloud is a Customer Relationship Management (CRM) platform that helps enhance the efficacy of the sales team of an organization and increase sales revenue.…

    Approvals, Automation, Boost business revenue, Build a strong future, Business decision-making
    Carol May 23, 2023
    1,379  Views
    Salesforce Integration For Business Growth

    Why Salesforce Integration Can Be Your Best Bet for Business Growth

    Blog in Salesforce integration

    Welcome to the age of the Customer. The only riddle that matters here is—how to connect better with them, carve meaningful relationships, address their problems…

    Business Operations, Business Success, Data Visibility, Salesforce Integration, Salesforce Integration Partners
    Rahul Sep 25, 2017
    3,927  Views

    Popular Salesforce Videos

    Einstein Opportunity Scoring For Everyone | Salesforce

    Einstein Opportunity Scoring For Everyone | Salesforce

    Video in AI and ML, Salesforce Einstein

    Let artificial intelligence help you and your sales team focus on the right opportunities and close more deals. See how Einstein Opportunity Scoring makes it…

    salesforce, Artificial Intelligence, Salesforce Einstein, Salesforce Video, Einstein Opportunity Scoring
    Rupal Kakkar Aug 18, 2020
    2,025  Views

    Are Privacy laws anti-marketing? - Salesforce, GDPR and CCPA

    Video in Salesforce Stories, Salesforce Products, Marketing

    Are Privacy laws anti-marketing? Or a great marketing opportunity for organizations? Perhaps the underlying question is: Is your Marketing outreach an unwanted nuisance? Or worse,…

    Salesforce Training, salesforce, Salesforce Video, gdpr, Customers
    PlumCloud Aug 21, 2020
    2,017  Views
    5 Strategies to Get a Salesforce Job with No Experience

    5 Strategies to Get a Salesforce Job with No Experience

    Video in Salesforce Stories

    If you have questions like how to jump start your Salesforce career as a freshers? Or what should be your approach to start Salesforce career?…

    Salesforce Training, Salesforce Certifications, Salesforce Video, Salesforce Career, Salesforce Learning
    Pooja Jul 23, 2021
    1,895  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®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.