Skip to content

Commit

Permalink
Added comments and how to fix about the errors in Chrome when using t…
Browse files Browse the repository at this point in the history
…he JS client.
  • Loading branch information
Derek Bowes committed Oct 31, 2014
1 parent 2130630 commit 1c76dbe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/bugLogClient.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/* BugLogHQ Javascript Notification Client ( https://github.com/oarevalo/BugLogHQ )
*
**********
PLEASE NOTE... you will get errors like the following in Chrome...
"Resource interpreted as Script but transferred with MIME type text/html:"
OR
"Refused to execute script from 'buglog/listeners/bugLogListenerREST.cfm?message=...' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."
To get around this, create a copy of 'buglog/listeners/bugLogListenerREST.cfm' and name it 'buglog/listeners/bugLogListenerRESTjs.cfm'
and add the following line to the top <cfheader name="Content-type" value="application/javascript">
**********
* Usage:
* <script type="text/javascript" src="bugLogClient.js"></script>
<script>
Expand Down

0 comments on commit 1c76dbe

Please sign in to comment.