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, 12 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

    Integration Flows

    Learn All About the Types of Integration Flows | Salesforce Integration

    Blog in Salesforce Apex, Salesforce integration

    Types of flows (Integration)   1. Oauth 2.0:  Defines how to securely delegate user authentication to grant authorization.  Enables the third-party applications to get a temporarily…

    Authorization Code Grant Flow, Batch Report, Build Mobile Applications, Client, Client ID Salesforce CRM Platform
    NAVDITA DAHIYA Nov 15, 2022
    3,083  Views
    spring 20 release

    Salesforce Spring ’20 Release Notes - Top Features

    Blog in Salesforce Releases

    Salesforce Spring '20 Release have been made universally accessible on February 17, 2020. The Spring '20 discharge conveys extended advancements over the whole Customer 360…

    Aura Components, Best Practices, Customer 360 stage, Lightning Experience, Lightning Experience Configuration
    MOHIT Apr 15, 2020
    3,240  Views

    Document Salesforce Flows the Smart Way with BOFC’s New Export Feature

    Blog in AppExchange

    Salesforce Flows are at the heart of modern automation — empowering teams to design powerful, no-code processes that enhance efficiency across the organization.However, as the…

    AppExchange, bulk metadata oeprations, export salesforce flows description, Salesforce, salesforcedeveloper
    AYAN Oct 14, 2025
    368  Views

    Popular Salesforce Videos

    Generative AI: What Diverse Data Types Can It Create? | Salesforce

    Generative AI: What Diverse Data Types Can It Create? | Salesforce

    Video in Others, AI and ML

    Imagine a technology that can take various types of data – from text and images to music and even beyond – and create something entirely…

    salesforce, Artificial Intelligence, Salesforce Community, Salesforce Webinar, Webinar
    Cyntexa Nov 6, 2023
    1,007  Views
    Salesforce Workbench | Salesforce Tutorial Video

    Salesforce Workbench | Salesforce Tutorial Video

    Video in Others, Salesforce Training

    In this video, we show you how to use Salesforce Workbench to set a user password. This can be useful when you have a user…

    Salesforce Training, Salesforce Tutorials, Salesforce Learning, Salesforce Tutorial Video, Salesfoce Video
    Stimulus Consulting Oct 19, 2020
    2,041  Views
    Salesforce Admin Training: How to add custom fields in salesforce ?

    Salesforce Admin Training: How to add custom fields in salesforce ?

    Video in Salesforce Integration

    Salesforce Custom fields :- Up to now we have created custom app, custom object and now we are going to create Salesforce custom fields. When…

    Salesforce Integration, Salesforce Customization, Salesforce Objects, Salesforce Data, Salesforce Account Management
    Pooja Mar 27, 2018
    1,628  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.