Launched: CORS support

LaunchDarkly
By John Kodumal   •   June 1, 20151 min read
LaunchDarkly

We've upgraded our REST APIs to support CORS. This lets anyone build web pages that call LaunchDarkly's APIs directly-- no need to proxy through a server.

You can make authenticated CORS calls just as you would make same-origin calls, using either token or session-based authentication. If you're using session auth, you should set the withCredentials property for your xhr request to true.

One last thing-- for security reasons, all POST, PATCH, and PUT calls to our API require a Content-Type of application/json.

Happy launching!

 

LAUNCHDARKLY HELPS YOU BUILD BETTER SOFTWARE FASTER WITH FEATURE FLAGS AS A SERVICE. START YOUR FREE TRIAL NOW.
You May Like
BEST PRACTICESTesting in Production to Stay Safe and Sensible
BEST PRACTICESWhat Is Continuous Testing? A Straightforward Introduction
JULY 20, 2021   •   HOMEPAGE FEATUREDA Beginners Guide to Feature Management for Federal Agencies
JULY 15, 2021   •   TRAJECTORYCall for Papers: Trajectory 2021
JULY 13, 2021   •   INDUSTRY INSIGHTSA Week in the Life: A Manager's Perspective
JULY 8, 2021   •   INDUSTRY INSIGHTS4 Tech Jobs for People Who Don't Code