Discussion Forum: Suggestions: Message 1470137
 Previous Message   Next Message 
 Author: as2032 View Messages Posted By as2032
 Posted: May 18, 2024 23:41
 Subject: Allow API access from client-side JavaScript
 Viewed: 76 times
 Topic: Suggestions
 Status:Open
 Vote:[Yes|No]
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

as2032 (68)

Location:  USA, California
Member Since Contact Type Status
Sep 28, 2021 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: BrickGuyCA
Currently the REST API (https://www.bricklink.com/v3/api.page) does not support
the cross-site access (CORS or JSONP). That makes it impossible to access the
API from a React app for example and requires a server-side component.

Could you enable the cross-site access by either adding the "Access-Control-Allow-Origin:
*" response header to the API (relatively easy change) or adding JSONP support
(a bit harder and it's an older method for cross-site JS API).

1 Message in this Thread:

 Msg 1 « - as2032 (68) 14 days ago May 18, 2024 to Suggestions

 Previous Message   Next Message 

Entire thread on one page
This message and all its replies on one page