# Help: Astrology Calculator on Wix with FreeAstro API

**URL:** <https://forum.wixstudio.com/t/help-astrology-calculator-on-wix-with-freeastro-api/76431>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [February 5, 2026, 11:27am UTC](https://forum.wixstudio.com/t/help-astrology-calculator-on-wix-with-freeastro-api/76431 "2026-02-05T11:27:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luna\_Bare](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/luna_bare/32/115911_2.png) [@Luna\_Bare](https://forum.wixstudio.com/u/Luna_Bare)\
**Post date:** [February 5, 2026, 11:27am UTC](https://forum.wixstudio.com/t/help-astrology-calculator-on-wix-with-freeastro-api/76431/1 "2026-02-05T11:27:55Z")

</div>

**I’m having trouble with**  
My astrology calculator always returns “Unknown” for Sun, Moon, and Rising signs. I think it may be related to CORS or the backend API calls.

**Working in**  
Dev Mode

**Site link**

> **[HOROSCOPES & MORE | Lunabare](https://www.lunabare.com/horoscopes-more?rc=test-site)**

**What I’m trying to do**  
I want users to enter their date of birth, time, and city of birth on my Wix site, press a button, and see their Sun, Moon, and Rising signs in three text boxes.

**What I’ve tried so far**

- Built a Node.js/Express backend that:

- Front-end fetch calls backend with date, time, and city

- IDs for inputs/buttons/results: `dob`, `birthTime`, `birthCity`, `calculateButton`, `sunSign`, `moonSign`, `risingSign`

- Added CORS for my Wix domain

- Tested with major cities like London, Paris

**Extra context**

- Backend logs show correct API responses, but front-end still displays “Unknown”

- Console shows TikTok Pixel and Sentry warnings, but I don’t think they affect this

- Using a section with ID `astroCalculatorSection` for all form elements

- Can provide full front-end and backend code if needed

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [February 6, 2026, 4:36pm UTC](https://forum.wixstudio.com/t/help-astrology-calculator-on-wix-with-freeastro-api/76431/2 "2026-02-06T16:36:12Z")

</div>

It’s difficult to tell without knowing the code, but a few things to consider, that might make it a little more straightforward:

> [@Luna\_Bare](#):
>
> Built a Node.js/Express backend that:

You can write backend code within Wix - [Writing Backend Code](https://dev.wix.com/docs/velo/articles/getting-started/writing-backend-code)

> [@Luna\_Bare](#):
>
> - Fetches my FreeAstro API key from AWS Secrets Manager

Wix also has a secrets manager built in - [About the Secrets Manager | Velo](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/secrets-manager/about-the-secrets-manager)

> [@Luna\_Bare](#):
>
> - 
> - Calls FreeAstro API to calculate astrology signs

You can work with third-party APIs within Wix, for example - [Integration With Third Party Services](https://dev.wix.com/docs/velo/articles/getting-started/integration-with-third-party-services)

* * *

The code would help a lot 🙂
