Origin null is not allowed by access-control-allow-origin

My server with the application is on a different computer than discourse.
I have connected discourse_connect.
Everything works on all browsers except Safari
The problem is in the browser security policy, which forbids sending Origin=null

But discourse does, it sends a request to my application with Origin=null
Is there any way to customize Origin sending, or change something else in the security policies?