allow extra XHR headers to be specified, e.g. authorization bearer tokens etc

This commit is contained in:
bilogic
2022-04-04 23:20:59 +08:00
parent 9dead5737a
commit c3db8d2e18
3 changed files with 21 additions and 5 deletions
+2
View File
@@ -287,6 +287,8 @@
<script type="text/javascript">
var d = new SQL.Designer();
// d.setXhrHeaders({"Authorization": "Bearer xxx"});
// d.setXhrHeaders({"X-CSRF-TOKEN": "xxx"});
</script>
</body>
</html>