I have some MVC2 website that has a lot of [RequireHttps].
But when I debug it I have to comment many of them in different places (controllers). And when code is ready I have to delete all comments.
So it takes time and sometimes I forgot to uncomment [RequireHttps] 🙂
My question is which is best practices to resolve this problem?
Thank you!
I’d use #if (C# Reference) and had a Debug and Release configuration:
Then you: