<script type="application/javascript">
     $(function () {
         $('#btnUsingjQuery').click(function () {
             $.ajax({
                 url: "https://maps.googleapis.com/maps/api/js?key=12345",
                 dataType: 'jsonp',
                 success: function (results) {
                     window.location.href = "www.google.com";
                 }
             });
         });
     });
     </script>
above are my jquery code which connect to a external api,no matter success or fail it will redirect to google.com.
i faced error after click the button : Refused to execute script from API because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. tried change type="application/javascript" still but facing the issue. any ideas why?