(ot) jQuery get() and 401 Unauthorized
Has anyone seen this? I have some jQuery that is runninga get() to a cold fusion page. The website is locked down with an NTFS user because it isunder development and we don't want the public to get in yet. On most calls to this get() in Firebug I see three 401Unauthorized errors. The get() works and I get the data from thecoldfusion page. Sometimes I get a 200 OK, it is not very consistent. This does not happen on my development site, but it does nothave an NTFS user locking down the site. Anonymous users are allowed in. These three errors are slowing down the page and making mycode look bad to the customer. Thanks, Chad ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338794 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) jQuery get() and 401 Unauthorized
What is an NTFS user? NTFS is a file system format, which has nothing to do with user permissions. Do you mean to say that you are mapped to a NTFS drive like an external hard disk? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338798 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) jQuery get() and 401 Unauthorized
What is an NTFS user? NTFS is a file system format, which has nothing to do with user permissions. Do you mean to say that you are mapped to a NTFS drive like an external hard disk? No, the original poster means NTLM (Windows authentication). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338819 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) jQuery get() and 401 Unauthorized
Has anyone seen this? I have some jQuery that is runninga get() to a cold fusion page. The website is locked down with an NTFS user because it isunder development and we don't want the public to get in yet. On most calls to this get() in Firebug I see three 401Unauthorized errors. The get() works and I get the data from thecoldfusion page. Sometimes I get a 200 OK, it is not very consistent. This does not happen on my development site, but it does nothave an NTFS user locking down the site. Anonymous users are allowed in. These three errors are slowing down the page and making mycode look bad to the customer. If your code isn't designed to work within an authenticated environment, you probably shouldn't be testing it within an authenticated environment. There are lots of other ways you can limit access to development environments. But anyway, you need to make sure that the user authenticates against the server before any of the AJAX requests are made. The browser won't typically prompt a user for credentials for an AJAX request, it'll just fail with a 401 response. You should be able to see the appropriate authorization header from the browser for all requests made, by using a tool like Firebug. Also, you need to make sure that permissions have been properly applied on the server - it may be the case that the user account in question has permission to make some requests but not others. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ons ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338820 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) jQuery get() and 401 Unauthorized
Nice Dave, not only did you answer the question but you also interpreted incorrect acronyms. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338821 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm