File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 4040 <svelte:fragment >
4141 {#if $url != ' ' }
4242 <h3 class =" text-center" >
43- {$url } v{#if $api_version != ' -1' }{$api_version }{:else } not supported version{/if }
43+ {$url } <!-- v{#if $api_version != '-1'}{$api_version}{:else} not supported version{/if}-->
4444 </h3 >
4545 {:else }
4646 <h3 class =" text-red-500 text-center" >
Original file line number Diff line number Diff line change 3636 let headersList = {
3737 Accept: ' */*' ,
3838 Authorization: ' Basic ' + btoa (username_ + ' :' + password_),
39- ' content-type' : ' application/json'
39+ ' content-type' : ' application/json' ,
40+ // 'Content-Security-Policy-Report-Only': 'default-src https: "unsafe-inline" "unsafe-eval"'
4041 };
4142
4243 let response = await fetch ($url + ' /api/tokens' , {
4849 let data = await response .json ();
4950 console .log (data);
5051
51- token .set (data[' token ' ]);
52+ token .set (data[' Jwt ' ]);
5253 username .set (username_);
5354 } else {
5455 failed = true ;
You can’t perform that action at this time.
0 commit comments