Answers.Body: <p>The <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location" rel="nofollow noreferrer"><code>X-Content-Type-Options: nosniff</code></a> header is a security measure that prevents the browser from attempting to detect the MIME type of a download automatically, as this behavior can be exploited for certain kinds of attacks. The browser will block requests for stylesheets and scripts which are not delivered with a CSS or Javascript MIME type, respectively.</p>
  
  <p>In practice, this means the web server is unable to load the resource for any of several reasons: </p>
  
  <ul>
  <li>The resource is missing</li>
  <li>The file permissions on the resource prevent it from being loaded by the web server</li>
  <li>The web server is not configured to deliver .js files using a Javascript MIME type</li>
  </ul>
  
  <p>Please confirm that the file exists, that you have followed all the instructions for <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location" rel="nofollow noreferrer">moving an existing installation</a>, and that your server is configured correctly, including file permissions and Javascript MIME types. In particular, since this file is loaded in a custom template, you should confirm that the path has not changed.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-29T06:21:34.487Z
Answers.Text: You are correct the resource is missing; I opened the URL in chromium browser it shows 404 error; I had a typo error in settings file. It caused to produce the URL like "modules/civicrm/modules" as in my question; but the actual path is 'modules/civicrm/"
Answers.UserDisplayName: ManiMuthuPandi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-28T15:27:13.217Z
Answers.LastActivityDate: 2017-06-28T15:27:13.217Z
Answers.UserDisplayName: choster
Body: <p>I have moved the installed civicrm with Drupal from windows PC to Linux PC and changed the civicrm settings file. Everything working fine but only the javascript files are not loading.</p>
  
  <blockquote>
    <p>The resource from
    “<a href="http://localhost/drupal/sites/all/modules/civicrm/modules/templates/CRM/Member/Form/MembershipStandalone.js?os8oog" rel="nofollow noreferrer">http://localhost/drupal/sites/all/modules/civicrm/modules/templates/CRM/Member/Form/MembershipStandalone.js?os8oog</a>”
    was blocked due to MIME type mismatch (X-Content-Type-Options:
    nosniff).</p>
  </blockquote>
  
  <p>I went to the folder paths files are exist. How to overcome this issue</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-28T10:00:36.897Z
Comments.Text: did you try https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-28T10:55:41.850Z
Comments.Text: Thanks for sharing the link but I couldn't find any clue using the link for this MIME error
Comments.UserDisplayName: ManiMuthuPandi
Tags: <error><javascript><migration>
Title: Javascript MIME type mismatch error after server move
ThreadText: # Javascript MIME type mismatch error after server move
  
  (Asked by: username_0 on 2017-06-28)
  
  I have moved the installed civicrm with Drupal from windows PC to Linux PC and changed the civicrm settings file. Everything working fine but only the javascript files are not loading.
  
  > The resource from
  > “<http://localhost/drupal/sites/all/modules/civicrm/modules/templates/CRM/Member/Form/MembershipStandalone.js?os8oog>”
  > was blocked due to MIME type mismatch (X-Content-Type-Options:
  > nosniff).
  
  I went to the folder paths files are exist. How to overcome this issue
  
  **Tags:** error, javascript, migration
  
  > **Comments:**
  > **username_1**: did you try https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location  
  > **username_0**: Thanks for sharing the link but I couldn't find any clue using the link for this MIME error  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-06-28. Score: 2 | Accepted answer
  
  The [`X-Content-Type-Options: nosniff`](https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location) header is a security measure that prevents the browser from attempting to detect the MIME type of a download automatically, as this behavior can be exploited for certain kinds of attacks. The browser will block requests for stylesheets and scripts which are not delivered with a CSS or Javascript MIME type, respectively.
  
  In practice, this means the web server is unable to load the resource for any of several reasons:
  
  * The resource is missing
  * The file permissions on the resource prevent it from being loaded by the web server
  * The web server is not configured to deliver .js files using a Javascript MIME type
  
  Please confirm that the file exists, that you have followed all the instructions for [moving an existing installation](https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location), and that your server is configured correctly, including file permissions and Javascript MIME types. In particular, since this file is loaded in a custom template, you should confirm that the path has not changed.
  
  > **Comments:**
  > **username_0**: You are correct the resource is missing; I opened the URL in chromium browser it shows 404 error; I had a typo error in settings file. It caused to produce the URL like "modules/civicrm/modules" as in my question; but the actual path is 'modules/civicrm/"  
  
  ---
  
  