function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sumitgoyal41.3968444841314932E12sumitgoyal41.3968444841314932E12 

Error with Web Tab in salesforce

I created a web tabs in salesforce but when i give the website name as www.google.com it is not showing anything and if i an using https://www.wikipedia.org it works. Can anyone tell why this so and how to deal with this issue?
dr.alokair1.396805139680674E12dr.alokair1.396805139680674E12

These may be the possible reason of the problem you are facing.

1. You must have to use the protocol (http, https,etc.) in front of url if it extenal url.

2. If you use http protocol then keep in mind that because of strict policy of modern browsers, the urls with http get blocked if open using https page.

3. Salesforce open the web tab  urls in the iframe and google url https://www.google.com url has applied the same origin policy. If you check the console then you find the iframe same origin error message.