darkdendrin
What is the simplest way to safely manage client backend calls and sensitive data in Razor Pages?
Or if I would need the ID on the page, do I pass it in the request body like you mentioned and pull it in the client side JS for api calls?
Not sure which way is best
5 replies
What is the simplest way to safely manage client backend calls and sensitive data in Razor Pages?
Thank you for responding! And yes, that was one part of my question. The other is, well, I guess I am just not sure how something like this would be structured within the context of the Razor Pages framework. In a way that is best practice.
When someone clicks on a document and it opens in the editor page, I guess my other question is would I even need the ID of which doc needs to be saved? If the id is just part of the query string parameters when the user opens it in the editor, or it’s assigned and bound to a pagemodel page property, can I just do a fetch API calls to the PageModel with the text content or nothing at all, and this use this.ID to reference to the page Id loaded on the page?
5 replies