Commit 41813a28 authored by Siddhant Sanyam's avatar Siddhant Sanyam

Added Authentication for GET

parent 2af60681
......@@ -111,6 +111,8 @@ loadFile = function(address, type, instruction) {
url: address,
type: "GET",
dataType: type,
headers: { Authorization: "Basic "+btoa("smik:asdf")},
fields: { withCredentials: "true" },
success: instruction,
error: function(type) {t=type;alert("er");}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment