Help: Astrology Calculator on Wix with FreeAstro API

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

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:

    • Fetches my FreeAstro API key from AWS Secrets Manager

    • Converts city → latitude/longitude using OpenStreetMap

    • Calls FreeAstro API to calculate astrology signs

  • 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

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

You can write backend code within Wix - Writing Backend Code

Wix also has a secrets manager built in - About the Secrets Manager | Velo

You can work with third-party APIs within Wix, for example - Integration With Third Party Services


The code would help a lot :slight_smile: