AngularJs拒绝执行脚本,因为它的MIME类型(' image / jpeg')不可执行

时间:2016-03-02 06:57:23

标签: jquery angularjs ajax

我尝试使用角度JSONP获取请求访问CDN服务器上的图像,但是出现以下错误

vc_vector* v1 = vc_vector_create(0, sizeof(int), NULL);
for (int i = 0; i < 10; ++i) {
  vc_vector_push_back(v1, &i);
}

// v1 = 0 1 2 3 4 5 6 7 8 9

vc_vector* v2 = vc_vector_create_copy(v1);

// v2 = 0 1 2 3 4 5 6 7 8 9 (copy of v1)

// to get pointer to int:

const int* v2_data = vc_vector_data(v1);

以下是请求呼叫:

Refused to execute script from 'http://gaadicdn.com/auctions/12/DL4CAF6779/1.JPG' because its MIME type ('image/jpeg') is not executable.

有人知道解决方案吗?

0 个答案:

没有答案