Origin is not allowed by Access-Control-Allow-Origin

Remote Origin Errors with JSONP and jQueryAre you self-harming because your browser is complaining about cross-domain, remote-origin XML requests? As annoying as it can be, the web would be a much nastier place without this restriction that limits what can be pulled from where. You’re probably seeing this exact message in the console/error log of your browser’s development tools:

Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin

Once you understand why you’re getting issues with this, it’s tiresome to always be re-writing this integral function so, like my other free web development resources on here, I’ve saved an example as a gist on GitHub with jQuery and PHP code which you are free to copy, clone or download then use without limitation!

Continue reading

Chinese Domain Extortion Scam

A client of mine received this e-mail a few days ago which I thought would best be posted publicly so that anyone looking into the same scam might stumble upon this post and re-consider their actions.

From: John <john.bing@webmail.idccenter.net>

Dear Manager,

(If you are not the person who is in charge of this, please forward this to your CEO,Thanks)

This email is from China domain name registration center, which mainly deal with the domain name registration and dispute internationally in China and Asia.
On December 26th 2011, We received Tianhua Ltd’s application that they are registering the name “<BUSINESS NAME>” as their Internet Keyword and “<BUSINESS NAME>.cn “, “<BUSINESS NAME>.com.cn “,”<BUSINESS NAME>.asia” domain names etc.., they are China and ASIA domain names. But after auditing we found the brand name been used by your company. As the domain name registrar in China, it is our duty to notice you, Continue reading