# Why does calling external API need to be proxied through Nextjs API route?

**URL:** <https://community.auth0.com/t/why-does-calling-external-api-need-to-be-proxied-through-nextjs-api-route/96997>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, nextjs-auth0\
**Created:** [December 22, 2022, 9:52pm UTC](https://community.auth0.com/t/why-does-calling-external-api-need-to-be-proxied-through-nextjs-api-route/96997 "2022-12-22T21:52:37Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![felix3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felix3/32/48057_2.png) [@felix3](https://community.auth0.com/u/felix3)\
**Post date:** [June 14, 2023, 4:21pm UTC](https://community.auth0.com/t/why-does-calling-external-api-need-to-be-proxied-through-nextjs-api-route/96997/7 "2023-06-14T16:21:35Z")

</div>

For what it’s worth, we have a workaround by passing the accessToken to the frontend.  
I have a brief example code here: [Next.js & External API without Proxying requests through Next.js backend](https://community.auth0.com/t/next-js-external-api-without-proxying-requests-through-next-js-backend/109244)

I’m just looking for some kind of official confirmation that this is safe to do.

---

_[View the full topic](https://community.auth0.com/t/why-does-calling-external-api-need-to-be-proxied-through-nextjs-api-route/96997)._
