Merhabalar, 2011 den beri Linux tabanlı işletim sistemi kullanıyorum, şu anda Linux Mint kullanıyorum. Pandemi süreci nedeni ile EBA da canlı ders yapmamız gerekiyor, ama malesef bu sistemle giremiyorum. Youtube da bir anlatım gördüm, consoule a derse giriş diye bir kod grubu giriliyor denedim ama çalışmadı. Girilen kod şu idi:
$.ajax({
url : "https://uygulama-ebaders.eba.gov.tr/ders/FrontEndService//studytime/getstudentstudytime",
method : "POST",
headers : {
"Content-Type" : "application/x-www-form-urlencoded",
"Accept" : "json"
},
data : "status=1&type=2&pagesize=25&pagenumber=0",
withCredentials : true,
crossDomain : true,
xhrFields : {
withCredentials : true
},
dataType : "json",
success : function(resp) {
var result = resp.studyTimeList;
var dersler = [];
var dersText = "";
var id = 1;
for (var i in result) {
if ((new Date).getTime() + 18000000 > result[i].startdate) {
dersler.push(result);
dersText = dersText + (id.toString() + ") " + result.title + " (" + result.ownerName + ")\n");
id = id + 1;
}
}
if (dersler.length == 0) {
alert("aktif ders yok");
return;
}
var selectedDers = prompt("Seçim yapınız (sadece rakam girin):\n\n" + dersText);
var ders = dersler[parseInt(selectedDers) - 1];
$.ajax({
url : "https://uygulama-ebaders.eba.gov.tr/ders/FrontEndService//livelesson/instudytime/start",
method : "POST",
headers : {
"Content-Type" : "application/x-www-form-urlencoded",
"Accept" : "json"
},
data : {
"studytimeid" : ders.id,
"tokentype" : "asdasd"
},
withCredentials : true,
crossDomain : true,
xhrFields : {
withCredentials : true
},
dataType : "json",
success : function(resp2) {
window.location = resp2.meeting.url + "?tk=" + resp2.meeting.token;
}
});
}
});
kARŞIMIZA ÇIKAN HATA da şöyle idi.
Access to XMLHttpRequest at 'https://sosyal-ebaders.eba.gov.tr/ders/VGrid/users/groups?cursor=&limit=1000&groupConnectionTypeOption=%7B%22joiner%22%3Atrue%2C%22owner%22%3Atrue%7D&groupType=SCHOOL%2CTEACHER%2CSTUDY%2CCUSTOM%2CCLASS&getcounters=false' from origin 'https://ders.eba.gov.tr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
sosyal-ebaders.eba.gov.tr/ders/VGrid/users/groups?cursor=&limit=1000&groupConnectionTypeOption=%7B%22joiner%22%3Atrue%2C%22owner%22%3Atrue%7D&groupType=SCHOOL%2CTEACHER%2CSTUDY%2CCUSTOM%2CCLASS&getcounters=false:1 Failed to load resource: net::ERR_FAILED
Özellikle CORS policy tarafından engellendi diyor. Bunu çözemedim.
'https://ders.eba.gov.tr' has been blocked by CORS policy:
Yukarıda yazılanları da okudum, bu konuda blgisi olan ya da sorunu çözebilen varsa yardımlarını bekliyorum, teşekkürler.