Mr Zoomzoom
Mr Zoomzoom

Reputation: 51

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 application using javascript?

Anyone knows?

Upvotes: 0

Views: 429

Answers (2)

Troy Hunt
Troy Hunt

Reputation: 20407

The problem is simply that you're requesting a resource which requires authorisation. You have two options:

  1. Make the resource accessible to the requesting users by granting their account access
  2. 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.

Upvotes: 0

Nicolae Albu
Nicolae Albu

Reputation: 1245

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.

Upvotes: 1

Related Questions