The errors is explained with Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc..
I tried .header('Access-Control-Allow-Origin', '*'), but the error remains. Any idea what I could do next?
The errors is explained with
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
.I tried
.header('Access-Control-Allow-Origin', '*')
, but the error remains. Any idea what I could do next?