iahiqosolutions
13 years agoAdvisor
How to skip Staging Authorization for images?
Hello folks, I'm developing web site that uses Lithium REST API. One of pages of the web site should display user's posts. Each of posts can contain images(that was uploaded in Lihthium) and us...
- 13 years ago
The basic auth check is there to prevent search engines like google from indexing the stage site, so you want to leave it on. It won't be on for your production site (as you want the search engines to index that), but it should be on for your staging site. What you might want to do is use a variable of some kind that tells you if your site is pointed to your Lithium stage site vs. your Lithium prod site. Based on that variable, your site could include the appropriate URL and if the Lithium site is your stage site you could also include the appropriate Authorization or WWW-Authenticate header for basic auth to the stage site.