Use this little website to test if a URL is setup correctly to work with CORS.
Shareable link: https://cors-test.codehappy.dev/?method=post&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&url=https%3A%2F%2Fjson.freeastrologyapi.com%2Fnavamsa-chart-info
These are the response headers received when making the request.
access-control-allow-headers: Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token
access-control-allow-methods: OPTIONS,POST
access-control-allow-origin: *
cf-cache-status: DYNAMIC
cf-ray: 95d2a58b76a5a229-YYZ
connection: keep-alive
content-length: 23
content-type: application/json
date: Thu, 10 Jul 2025 20:00:20 GMT
server: cloudflare
x-amz-apigw-id: NglJQGTnhcwENmg=
x-amzn-errortype: ForbiddenException
x-amzn-requestid: a7a0d9cf-ccdc-4e1b-a808-e154f053dbfe
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.