[Azure Websites PHP] Cross Domain request results in blank response page after Preflight HTTP OPTIONS
THE PROBLEM I've deployed a REST API application ( CodeIgniter with Phil Sturgeon's Rest-Server library ) on Azure Websites. Although I've set the Access-Control-* header in my PHP application: header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS'); header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept'); (If you need a working test file, here's the gist for the test file) But Azure Websites server doesn't return the headers in response. And thus all requests to the server failed with the error message: Origin http://example.azurewebsites.net is not allowed by Access-Control-Allow-Origin. In order to make sure there's no problem with my application, I've deployed the same code to Appfog.com . And as expected, the application works just fine. The same application d
Strange "water hack" burns 2 lbs overnight
ReplyDeleteWell over 160000 men and women are hacking their diet with a easy and SECRET "liquids hack" to lose 2lbs every night as they sleep.
It is effective and works on everybody.
Here's how to do it yourself:
1) Take a clear glass and fill it up half the way
2) Then use this awesome hack
and you'll be 2lbs thinner the very next day!