Forms auth redirecting css/script includes to the login page with HTTP 302

前端 未结 5 1000
悲哀的现实
悲哀的现实 2020-12-07 23:16

I have some includes on a login page, a css file and a js file.



        
5条回答
  •  死守一世寂寞
    2020-12-07 23:44

    So, here's what I did that entirely solved the issue.

    First, I made the change to the web.config like everyone else said to do.

    I am using Anonymous Authentication in IIS, and as stated in this issue, I went into IIS > Application Pools > Right-clicked my application pool > Edit > changed the app pool to use the Application Pool Identity.

    THEN - I went to the parent folder that contains my site, went into permissions for that folder, and added the server's NETWORK SERVICE account to access the folder. That did it for me. It's because the Application Pool is running under ApplicationPoolIdentity, which is the NETWORK SERVICE account on the local machine.

    Hope this helps someone!

提交回复
热议问题