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
astroCalculatorSectionfor all form elements -
Can provide full front-end and backend code if needed