How to hide windows security authentication using javascript
I have a problem in my code. When I call a url from server application , it requires windows security and shows pop up login. How to hide it from my app开发者_Go百科lication using javascript?
Anyone knows?
You can't hide it with JavaScript. The URL you ask is protected by a security constraint defined in the server / webapp. You need to change that configuration.
The problem is simply that you're requesting a resource which requires authorisation. You have two options:
- Make the resource accessible to the requesting users by granting their account access
- Allow anonymous users to access the resource
What you're asking is how to avoid the browser challenge requesting credentials - what else do you expect to happen? You can't just serve up a resource the requestor does not have access to.
精彩评论