# Unauthorized error by calling view

**URL:** <https://discourse.cakephp.org/t/unauthorized-error-by-calling-view/12437>\
**Category:** Need Help\
**Created:** [February 27, 2025, 2:20pm UTC](https://discourse.cakephp.org/t/unauthorized-error-by-calling-view/12437 "2025-02-27T14:20:20Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![efjot](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@efjot](https://discourse.cakephp.org/u/efjot)\
**Post date:** [March 2, 2025, 8:20pm UTC](https://discourse.cakephp.org/t/unauthorized-error-by-calling-view/12437/12 "2025-03-02T20:20:35Z")

</div>

Seems that this is a known problem. I found some Threads here.  
[https://discourse.cakephp.org/t/handling-forbidden-exception-for-request-authorization-middleware/6708](https://discourse.cakephp.org/t/handling-forbidden-exception-for-request-authorization-middleware/6708)  
[https://discourse.cakephp.org/t/redirect-to-last-visited-page-after-authorization-fail/10598](https://discourse.cakephp.org/t/redirect-to-last-visited-page-after-authorization-fail/10598)

---

_[View the full topic](https://discourse.cakephp.org/t/unauthorized-error-by-calling-view/12437)._
