Getting error after uploading the Hello world extension

I’m getting error while calling ajax to a 3rd party url in my js “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource”. What is the reason for that?