WEB API

# Integrations WEB API
I am caling WEB API from Jquery using credentials[Basic User],When i open .html file in IE browser it's return some json data,
In the same browser i have already logined with my credentials[System Administrator] in tempo page , if i reload tempo page it automatically goes to the basic user profile
in tempo but username shows my name only,but in backgroud is showing all information of Basic User, Is there any security issues or any other problem ?

Sample Jquery code snnipet:
<!DOCTYPE html>
<html>
<head>
<script src="ajax.googleapis.com/.../script>
<script>
var data;
$(document).ready(function(){
$("#btn1").click(function(){
$.ajax({                    
                    url:"url",                               
                    type:'GET',
                    dataType:"json",
           headers: {                              
"Authorization": "Basic " + btoa("username" + ":" + "password")
},
success: function(result){...

OriginalPostID-247893

  Discussion posts and replies are publicly visible