Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of using cors with Doorkeeper API
<script src="" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script type="text/javascript">
dataType: "json",
url: "",
headers: { 'Authorization': 'Bearer your_token' },
data: {},
success: function(data) {
$( document ).ready(function(){
$( "code" ).text( JSON.stringify(data) )
<h1>API Response</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment