Developer forum

Forum » Templates » Razor code exposed

Razor code exposed

Nuno Aguiar
Reply

Hi,

 

We are performing some security tests in Razor templates and would like to know if there's any way the Razor code is not exposed in case of error.

 

In C# we can set the debug settings in web.config.

 

Best Regards,

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

That is currently not possible.
 

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Ok, we'll wrap everything in a try-catch.

 

Thanks

 

You must be logged in to post in the forum