works fine so long as the HEADER has "Authorization", `Bearer ${token}, but for HTTP requests you can not apend the REQ header like this, you can send the value in the cookies, but I am lost where you would do a IF not in header LOOK for valule in a cookie...
The result is not web views can be secure because you can not pass the token by header and can not read it by cookie
This looks like a question for Laravel or Symfony - the function loadComponent does not exist in this library, nor do any of the options you are providing.
in src/Controller/AppController.php
works fine so long as the HEADER has
"Authorization", `Bearer ${token}
, but for HTTP requests you can not apend the REQ header like this, you can send the value in the cookies, but I am lost where you would do a IF not in header LOOK for valule in a cookie...The result is not web views can be secure because you can not pass the token by header and can not read it by cookie