The script from '*' was denied because its MIME type ('text / html') is not executable and strict MIME type checking is enabled
I am using a form on my website to update Google Sheet with Google Forms. It worked fine, but lately I've started getting the above error.
Note that the data is being written perfectly, namely that the "alert" is not triggered (no response from the sheets?), So the user cannot get confirmation that his data has been written.
This is the script:
<script type="text/javascript">
function postContactToGoogle(){
var name = $('#name-add').val();
var email = $('#email-add').val();
var location=$('#location-add').val();
if ((email !== "")) {
$.ajax({
url: "http://docs.google.com/forms/d/1Nt-NaXVnZYHDeEbqTypyq6ZUMKPk9of4fW_U5eaiLjg/formResponse",
data: {"entry.555826589" : name, "entry.2022783192" : email, "entry.128132944": location},
type: "POST",
dataType: "jsonp",
statusCode: {
0: function (){
$('#name-add').val("")
$('#email-add').val("")
$('#location-add').val("");
//Success message
alert("Sweet! We will get in touch soon.");
},
200: function (){
$('#name-add').val("");
$('#email-add').val("");
$('#location-add').val("");
//Success message
alert("Sweet! We will get in touch soon.");
}
}
});
} else {
//Error message
alert("Email is required");
}
}
PS: My site is hosted by Blogger.
+3
source to share
No one has answered this question yet
Check out similar questions:
one hundred