Okta session refreshing - 404

Hi,
I’m trying to refresh my current Okta session from frontend using jquery (https://${my_site_url}/api/v1/sessions/me/lifecycle/refresh).
I set Trusted Origins in Okta for my site and Okta set headers
“access-control-allow-credentials: true”
“access-control-allow-origin: https://localhost:44314
as expected.
But I’m still receiving 404 Http error {“errorCode”:“E0000007”,“errorSummary”:“Not found: Resource not found: me (Session)”…}
It happens because refresh session HTTP request is sent without Okta session cookie.
What should I do for successful session refreshing in my case?

Can you check out the suggested solution from this post?