Ionic Deployed on the Web: CORS Issue

I copied and pasted the code from my www directory to my server and it runs beautifully. Only issue is POST requests…Chrome says:

Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access.

GET requests work fine. My server sends these headers out on every response:

        defaultHeaders: {
            'Access-Control-Allow-Origin': '*',
            'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept',
            'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
            'Content-Type': 'application/json'

Any ideas how I can get POST requests to work?

OK, I figured it out. Browser was sending pre-flight OPTIONS request that server wasn’t expecting. I added an OPTIONS handler on my server that returns { Allow: POST } and all is swell!