01 Jun

Launched: CORS support

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.

Share with:

FacebookTwitterGoogleLinkedInReddit


John Kodumal
CTO & Co-Founder at LaunchDarkly
John was a development manager at Atlassian, where he led engineering for the Atlassian Marketplace. Prior to that he was an architect at Coverity, where he worked on static and dynamic analysis algorithms. He has a Ph.D. from UC Berkeley in programming languages and type systems, and a BS from Harvey Mudd College. He climbs rocks, ice, small boulders, and the occasional building.