# No 'Access-Control-Allow-Origin' header is present on the requested resource

**URL:** <https://forum.serverless.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/3113>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [November 14, 2017, 7:03pm UTC](https://forum.serverless.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/3113 "2017-11-14T19:03:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DavidWells](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/davidwells/32/201_2.png) [@DavidWells](https://forum.serverless.com/u/DavidWells)\
**Post date:** [November 15, 2017, 12:00am UTC](https://forum.serverless.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/3113/6 "2017-11-15T00:00:59Z")

</div>

Fixed it!

> <https://github.com/serverless/examples/blob/master/aws-node-auth0-custom-authorizers-api/handler.js#L43>

JWT secret needed to be base 64 decoded to validate the jwt.

Demo is working again [http://auth0-serverless-protected-routes-demo.surge.sh/](http://auth0-serverless-protected-routes-demo.surge.sh/)

🎉

---

_[View the full topic](https://forum.serverless.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/3113)._
