I tried using a mashup in the mobile application I made.I've copied the following HTML into my site to use the mashup and have saved the generated code using ordinary HTML files.
On mashup security I have added a site URL that I added mashup code.When I open the file with my PC there is no problem logging in.But when I open the file on another PC the result is a login page appears.
How can I open the file on another PC when I don't need a login?
In your mashup code the data-pega-url is just going to the standard PRServlet as you are just specifying the context root of /prweb. You also have no UserIdentifier or password in a data-pega-action-param-parameters attribute.
This should always trigger the login screen to display. When you test, regardless of machine you are using, make sure you use a new browser instance that is not sharing the Pega-RULES cookie with your developer portal access. In IE use "File-> New Session" or in Chrome "New Incognito window".
If you don't there will not be any authentication as we use browser level Session Cookies and it that cookie is sent in and corresponds to an already authenticated requestor you wont be prompted for authentication.
The Password has to be base64 encoded or you will be presented with the login screen.
I warn you that anyone viewing your mashup source can get your userid and password. What you are setting up currently should only be used for your own internal testing. At some point you need to work on the authentication that will be used when the gadget is used with the real top level application.