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 8 years, 1 month 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

    Campaigns now come to Lightning. But I have got issues

    Blog in Lightning

    Salesforce Lightning Experience was launched in Winter16 release almost 6 months back. And even after that much time i am still clinging on to Classic…

    Lightning, Lightning Experience, Salesforce Campaigns, Salesforce Lightning, Salesforce Lightning Experience
    Obivan Mar 15, 2016
    8,980  Views
    Using Loading Spinner in Salesforce Lightning Component

    How to use Loading Spinner in Salesforce Lightning Component?

    Blog in Lightning, Salesforce customization

    How to use Loading Spinner in the Salesforce Lightning Component? Definition of Loading Spinner: Don’t forget to check out:  How Variable Types Operate in the…

    aura:doneWaiting, aura:waiting, Client-Side Controller, Javascript controller, Lightning Component
    Aman Apr 10, 2018
    43,950  Views
    Salesforce Connect

    Salesforce Connect - Quick Start | Apex Developer Guide

    Blog in Salesforce

    Salesforce Connect is a cloud integration service that has a game-changing performance in the world of Salesforce. As with the help of this service, you…

    Backend Systems, Bulky Data, Business, Cloud Integration Service, Complex Processes
    SP Mar 17, 2021
    2,697  Views

    Popular Salesforce Videos

    Salesforce Winter '22 Innovation Spotlight: Sales, Service, & Financial Services

    Salesforce Winter '22 Innovation Spotlight: Sales, Service, & Financial Services

    Video in Salesforce Stories, Salesforce Training

    Improve employee performance and grow your business with the newest features from Sales, Service, and Financial Services Cloud! Watch this video and get to know…

    Salesforce Training, Salesforce Tutorial, Financial Services Cloud, Salesforce Video, Sales Cloud
    Jogender Sep 27, 2021
    1,631  Views
    Salesforce Service Cloud Telephony

    Salesforce Service Cloud Telephony

    Video in AppExchange

    Natterbox CTI and Telephony inside Salesforce ServiceCloud. Transform your telephony experience and empower your agents with fast and personalised support.

    Salesforce Service Cloud, Salesforce Cloud, Best Salesforce Tutorials, Salesforce Service Cloud Training, Salesforce Service Cloud Demo
    Ian Feb 20, 2019
    2,046  Views
    Hello (Salesforce) World - An introduction to Tableau Developer

    Hello (Salesforce) World - An introduction to Tableau Developer

    Video in Salesforce Products

    Hello, Salesforce world! Curious about Tableau (the newest member of the Salesforce family), our developer platform and suite of developer tools available? Whether you are…

    Salesforce Training, salesforce, Salesforce Developers, Salesforce Video, Tableau
    Jogender Jun 22, 2020
    1,528  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.