How would I add a token to the request to LoadFromJson? I tried the following but got an error:
WebResponsiveGrid1.LoadFromJSON( url, 'Value' );
procedure TfrmMain.WebResponsiveGrid1HttpRequest(Sender: TObject; ARequest: TJSXMLHttpRequestRecord);
begin
ARequest.req.setRequestHeader( 'authorization', 'Bearer ' + FToken );
end;
Uncaught InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED. | stack::Error: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED. at Object.WebResponsiveGrid1HttpRequest (http://localhost:8000/TrucksOnRoadWeb/TrucksOnRoadWeb.js:53843:20) at Object.cb [as FOnHttpRequest]