My application listen port 8080, so it accessed with default workspace url. Also I have server for static files ran on port 8081. Before sending file using POST-request, browser performs OPTIONS-request (CORS) to port 8081. But static-server does not receive this request because of c9 system makes redirect to login page.
Here is general info about request:
Status Code:302 Moved Temporarily
This is a responce headers:
HTTP/1.1 302 Moved Temporarily
Date: Fri, 22 Jan 2016 05:27:17 GMT
Is this a bug, or I doing something wrong?