oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
154 stars 67 forks source link

Weird error with Javascript lib #112

Closed KrunchMuffin closed 10 years ago

KrunchMuffin commented 10 years ago

Refused to execute script from 'http://devsite.dev/buglog/listeners/bugLogListenerREST.cfm?message=JS%20…UA-Compatible%3A%20IE%3DEdge%0D%0A%22%29%0A%7Banonymous%7D%28%29%3C/pre%3E' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Not sure what exactly it means? I am using it in an ajax call in the error: section.

        $.ajax({
        url: "/com/franchise/events.cfc",
        data: {
            method:"getEquipmentAvailability",
            activityId: activityid,
            eventDate: edate,
            startTime: ast,
            endTime: aet,
            rate: pricingmodel,
            type: type
        },
        method:"POST",
        cache: false,
        dataType:"json",
...snip...
            error: function(e) {
            BugLog.notifyService({
                message: "JS Error adding activity",
                error: e,
                severity: "ERROR"
            });
            bootbox.alert("There was an error setting the activity.");
        }
KrunchMuffin commented 10 years ago

You can see my fix here

https://groups.google.com/forum/#!topic/bugloghq/ujzqhBmEiOE