it may happen when Chrome sees that the actual data doesn’t match the headers.
If you return your answer with header type added, it shouldnt say canceled (Content-type: text/plain. for example)
You can check them by looking Event tabs - response headers.