Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6324835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:46:50+00:00 2026-05-24T16:46:50+00:00

I keep getting this error 1Resource interpreted as Script but transferred with MIME type

  • 0

I keep getting this error

1Resource interpreted as Script but transferred with MIME type application/json.

I am trying to use jquery query to grab my json form a php file on a separate domain here is my php code.

json.php

<?php
header('Content-type: application/json');
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($arr);
?>

and here is my jquery

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> 
<script type="text/javascript">

$(document).ready(function() {

    var surl =  "http://dropp.users35.interdns.co.uk/json.php";

         $.getJSON(surl,  function(rtndata) {
             console.log(rtndata);
    });

 });


</script>

ok if i change my url to

http://dropp.users35.interdns.co.uk/json.php?callback=?

i then get this error?????

1Resource interpreted as Script but transferred with MIME type application/json.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:46:51+00:00Added an answer on May 24, 2026 at 4:46 pm

    I believe the answer to your question involves using JSONP because it involves cross domain scripting…

    It is discussed in a couple of similar questions on StackOverflow:
    Resource interpreted as script but transferred with MIME type application/json. & parsererror

    and here:
    https://stackoverflow.com/questions/267546/correct-http-header-for-json-file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use slime from CVS (2009-01-05) but keep getting this error: LOAD:
I am trying to use a nested form but keep getting this error when
I am trying to grab a webpage with actionscript, but keep getting this error
I'm trying to send SMTP e-mails using PHPMailer, but I keep getting this error
i keep getting this error: Exception Details: System.NotSupportedException: Cannot serialize member HannaPrintsDataAccess.Customer.CustomerAddresses of type
I need a priority queue of objects but I keep getting this error: symbol:
I keep getting this error when I try and run this script. It has
I keep getting this error when trying to delete a record from my table.
On first load of my Silverlight application I keep getting this error: Could not
I keep getting this NPE in my application and I can't seem to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.