Why CORS error?

+2 votes
133 views

How do I solve this error in the console for my app, DNAngulator?

Access to fetch at 'https://api.wikitree.com/api.php' from origin 'https://apps.wikitree.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

WikiTree profile: Anonymous Dupre
in WikiTree Tech by Anonymous Dupre G2G6 (6.8k points)

2 Answers

+3 votes
 
Best answer

Issue was caused by manually setting Content-Type header to application/json

by Anonymous Dupre G2G6 (6.8k points)
+4 votes

Hey,

See eg https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

You don't show any badges, so can't see if you are a member of the apps team. My advice: become a member and reach out to us on Discord. We would need to see your code/details.

by Michel Vorenhout G2G6 Pilot (317k points)

Related questions

+5 votes
1 answer
260 views asked Mar 25, 2019 in WikiTree Tech by ing C.J.S. Vonk G2G Crew (530 points)
+6 votes
1 answer
211 views asked May 15, 2016 in WikiTree Tech by Doug Henderson G2G6 (9.9k points)
+5 votes
1 answer
+2 votes
1 answer
141 views asked Jan 25 in WikiTree Tech by Tomáš Kratina G2G2 (2.3k points)
+6 votes
2 answers
156 views asked Jan 8 in WikiTree Tech by Michel Vorenhout G2G6 Pilot (317k points)
+7 votes
2 answers
+9 votes
3 answers
234 views asked Sep 28, 2022 in WikiTree Tech by Przemek Więch G2G5 (5.2k points)
+7 votes
3 answers
217 views asked Feb 1, 2022 in WikiTree Tech by Fairch Fairchild G2G3 (3.0k points)
+5 votes
1 answer
+7 votes
1 answer
338 views asked Jan 19, 2022 in WikiTree Tech by Ken McEvoy G2G6 Mach 1 (12.1k points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...