I am facing similar issue, could you please let me know what is the solution?
When I add my laptop ip to the allow list of access restrictions of the webapp, only then I am able to access the webapp through app gateway public frontent IP. But anyone should be able to access the webapp through app gateway without adding them in the access restrictions list.