موقعي هو token الخاص بالمستخدم عشان يستخدم sanctum ليس معروف للمستخدم. لانه متجر الكتروني و ليس فقط api
0
للاسف كله هذا سويته ولا زال يظهر لي unauthenticated . كود جافاسكريبت async function checkName(bodyForm){ try{ const name=await fetch("api/addCompany",{ method:"POST", // credentials:"include", headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', "Authorization": `Bearer ${document.querySelector('input[name=_token]').value}`,// crsf tokenهذا "X-CSRF-Token": document.querySelector('input[name=_token]').value
لقيت الحل : بحثت بنفسي :) import win32gui,win32con,win32ui,time #المكتبات المستخدمة #اظهار جميع الصفحات و اسمائهم و الايدي الخاص بهم def list_widndows(hwnd,ctx): if win32gui.IsWindowVisible(hwnd): print(hex(hwnd),win32gui.GetWindowText(hwnd)) win32gui.EnumWindows(list_widndows,None) #طباعة جميع النوافذ اسمائها و الايدي الخاص بها في الجهاز hwnd=win32gui.FindWindow(None,"Untitled - Notepad")#اختيار النافذة الاساسية المحددة print("this: ",hwnd) time.sleep(2)#انتظار كم ثانية لتنفيذ المهام hwndex=win32gui.FindWindowEx(hwnd,None,None,None)# تحديد child من النافذة الاسياسة print("hwndex: ",hwndex)#معرفة الايدي الخاص بchild # بعض البرامج يكون لها child لاستقبال المدخلات و ليس النافذة الاسياسية و هذا يأخذ child للارسال المدخلات #بعض البرامج يتغير