How to access API response , message and status code

I am trying to run a simple public api but on Api Done : lasterror message and response are empty and status is 0

Page Code : 
<body is="dmx-app" id="index">

    <dmx-session-manager id="session"></dmx-session-manager>

    <dmx-api-action id="api1" noload="true" url="" 


        <button id="btn1" class="btn" dmx-on:click="api1.load()">Button</button>


The alert says 0++ so the API Done event is firing but why is the status 0 and why is the message and response empty? I am using App Connect (static site- no server) Thanks

Community Page
Last updated: