API CORS policy

+5 votes
265 views

I am one of those people that ended up with 1500+ profiles with messy bios.  To help clean this up, I started by writing a little script to match people in my local database to their profile on WikiTree.  My ultimate goal is to suggest better bios, not to automatically merge them.  I fully agree with the policy that this should always be a human thing.  Anyway ..

When using the WikiTree API through wikitree-javascript-sdk, I noticed it works well from the hosted version at apps.wikitree.com.  However .. once I host the SDK myself on localhost:8080, I get a CORS error.

Access to XMLHttpRequest at 'http://apps.wikitree.com/api.php' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Please advise, thanks

in WikiTree Tech by ing C.J.S. Vonk G2G Crew (530 points)
retagged by ing C.J.S. Vonk

1 Answer

+5 votes
I just realized that the client code needs to be hosted on apps.wikitree.com.
by ing C.J.S. Vonk G2G Crew (530 points)

Related questions

+2 votes
2 answers
151 views asked Apr 24 in WikiTree Tech by Anonymous Dupre G2G6 (6.8k points)
+2 votes
1 answer
145 views asked Jan 25 in WikiTree Tech by Tomáš Kratina G2G2 (2.3k points)
+5 votes
1 answer
+6 votes
2 answers
166 views asked Jan 8 in WikiTree Tech by Michel Vorenhout G2G6 Pilot (319k points)
+7 votes
2 answers
+9 votes
3 answers
236 views asked Sep 28, 2022 in WikiTree Tech by Przemek Więch G2G5 (5.2k points)
+7 votes
3 answers
224 views asked Feb 1, 2022 in WikiTree Tech by Fairch Fairchild G2G3 (3.0k points)
+5 votes
1 answer
+8 votes
1 answer
357 views asked Jan 19, 2022 in WikiTree Tech by Ken McEvoy G2G6 Mach 1 (12.4k points)
+26 votes
2 answers

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

disclaimer - terms - copyright

...