Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mad_subh's avatar

web route and ajax

I am trying to post a modal form using plain javascript to a web route which is protected by cookie authentication. My question is that - Is it possible to request a web route which is protected by Auth middleware via web guard( cookie based authentication ) using plain vanilla javascript POST AJAX call? If it is then how? and will it be right to do so in terms of security concern?

0 likes
0 replies

Please or to participate in this conversation.