question

KevinOFarrell-3467 avatar image
0 Votes"
KevinOFarrell-3467 asked ·

Apps works on deployment slot, not on production (for some browsers)

Have an app, running for the last year but last week started getting auth issues on production. Debugging it showed random 403 reported. We published again to a deployment slot, checked everything worked and then did a swap. No success.

What works (on production)
- Chrome/Safari/Edge on desktop

What fails (on production)
- Firefox and Chrome/Android

Everything works on deployment slot and the slot is cloned from production. So apart from remapping the IP address, does anyone know what else swap slots does that might cause this?

PS. It's an MVC.net with a forms authentication cookie.

banginheadofftablerepeatedly






azure-webapps
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The auth issue you mentioned is provided by App Service Authentication feature or your own implementaion?

0 Votes 0 ·

1 Answer

KevinOFarrell-3467 avatar image
0 Votes"
KevinOFarrell-3467 answered ·

Ok. We have sorted it out but thought I'd bring the answer back here so others can learn. And it's a weird one.

We spotted a 404 error on a favicon. Not a big deal as this shouldn't cause any problems and after all, it works local and on deployment slot. Well it looks like this simple 404 get's returned a 403 and that causes our problem.

We removed the following from the _layout.cshtml and pushed to the production server (just this one file) and everything is working again. It no longer gets the 404 and the 403 disappears. Insert the line back in and the production server craps out again.

"< link rel="apple-touch-icon" sizes="144x144" href ="../../images/lock-144">"

So two things we don't understand-

1) Why would a favicon 404 cause a 403 to be reported?
2) Why does it behave differently on production slot vs everything else?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.