# Calls to an external API and problems with samesite issues with Wix cookies

**URL:** <https://forum.wixstudio.com/t/calls-to-an-external-api-and-problems-with-samesite-issues-with-wix-cookies/53378>\
**Category:** Ask the community\
**Tags:** api, question, code, wix\
**Created:** [October 29, 2023, 2:18pm UTC](https://forum.wixstudio.com/t/calls-to-an-external-api-and-problems-with-samesite-issues-with-wix-cookies/53378 "2023-10-29T14:18:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user588](https://avatars.discourse-cdn.com/v4/letter/u/9dc877/32.png) [@user588](https://forum.wixstudio.com/u/user588)\
**Post date:** [October 29, 2023, 2:18pm UTC](https://forum.wixstudio.com/t/calls-to-an-external-api-and-problems-with-samesite-issues-with-wix-cookies/53378/1 "2023-10-29T14:18:31Z")

</div>

**Question:**  
I have integrated the what3words api on a site that I look after and it has been working very well. However, I have run into a problem with the \_wixAB3 cookie being rejected by the api now that I am using it on a second page on the same site. It looks as though the problem is down to the \_wixAB3 cookie not having the correct samesite classification and is therefore being rejected.

Can someone tell me how I can fix this through the code in velo (or elsewhere) - I haven’t been able to find any useful insights in the wix documentation.

Many thanks

Nick W

**Product:**  
Wix Editor

**What are you trying to achieve:**  
To access the w3w API on from dfferent pages on the same site

**What have you already tried:**  
Internet search, Wix documentation, what3words documentation

**Additional information:**  
I have the API key in the secrets manager and have also set up another API key in the hope that it would circumvent the issue but to no avail.
