Question: I have this problem that one of our landing page(Wiki) in our sharepoint site has a dashboard that is getting data from a non sharepoint site and you need to login in order to view this. But not all of our users has that account. So we created a dummy account that needs to be inputted in order to view the dashboard. What i want to happen is to create a javascript program in script editor that will automatically login when the windows security dialog box appear.

[![enter image description here](https://i.stack.imgur.com/EYrCq.png)](https://i.stack.imgur.com/EYrCq.png)

also our landing page is all HTML and CSS so i can easily add the javascript in case this is possible.

Thank you.

Answer: 
**No solution from SharePoint side**, also JS doesn't help in this situation,

You should manage the security from the dashboard side by allowing the **SSO** or the anonymous access to the dashboard URL!
This is an inherently flawed plan of approach. You need to consider the risk of exposing that user name and password to anyone with access to that page.

Your are attempting to circumvent a security mechanism. SharePoint nor JS will assist you.