# JS location.hash is stripped off in Safari

**URL:** <https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417>\
**Category:** Get Help\
**Tags:** jwt, passwordless, auth0, lock\
**Created:** [June 10, 2020, 4:44am UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417 "2020-06-10T04:44:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gippea-team](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gippea-team/32/13317_2.png) [@gippea-team](https://community.auth0.com/u/gippea-team)\
**Post date:** [June 10, 2020, 4:44am UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/1 "2020-06-10T04:44:03Z")

</div>

I’m programming with JavaScript, and the `window.location.hash` is being stripped off in Safari.

I’ve seen a few solutions which instruct the developer to add a trailing slash to the callback URL. But this is not working.

**This is the error I receive** : `#error=server_error&error_description=Unable%20to%20configure%20verification%20page.&state=tdnAt0EZkVaS7M3FNmtiDyuYTU1vXLYE`

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [June 11, 2020, 7:09pm UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/2 "2020-06-11T19:09:29Z")

</div>

Good afternoon,

I would recommend reviewing this documentation: [Cross-Origin Authentication](https://auth0.com/docs/cross-origin-authentication#create-a-cross-origin-verification-page) for this specific error.

Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 12, 2020, 6:49am UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/3 "2020-06-12T06:49:03Z")

</div>

Let us know after that if you have any further questions!

---

<div class="post-metadata">

**Author:** ![gippea-team](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gippea-team/32/13317_2.png) [@gippea-team](https://community.auth0.com/u/gippea-team)\
**Post date:** [June 12, 2020, 11:35am UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/5 "2020-06-12T11:35:56Z")

</div>

For anyone who has this issue. I followed the instructions above and then unchecked **Website tracking** in the Safari **privacy** settings.

👨‍💻

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 12, 2020, 12:16pm UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/6 "2020-06-12T12:16:39Z")

</div>

perfect! Thanks a lot for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 27, 2020, 12:28pm UTC](https://community.auth0.com/t/js-location-hash-is-stripped-off-in-safari/44417/7 "2020-06-27T12:28:47Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
