
Greg lindquist (Customer) asked a question.
Hi all, we are noticing the RESTful API documentation is available to the public for our .net core frontend application.
We see this as security concern as it can help expose private information in some cases. Is there a way to disable anonymous access to a page like https://mydomain.com/api/default/blogs/sfhelp - but still allow frontend access to the https://mydomain.com/api/default/blogs endpoint?
Thanks!
Hi @Greg lindquist (Customer) ,
There is no separate setting for the sfhelp so in your case (where you want Anonymous access for the content API endpoints) you can use a rewrite rule that redirects sfhelp to the home page.
Here is a sample you can add to the Sitefinity CMS web.config file:
I hope this works for you.
Regards,
Sabrie