最近搜索


没有最近搜索

fdfdsfds's Avatar

fdfdsfds

已加入2021年4月15日

·

最后活动2022年2月14日

关注

0

关注者

0

活动总数

4

投票

0

订阅

1

活动概览

的最新活动 fdfdsfds

fdfdsfds 进行了评论,

社区评论 Q&A - Help center and community

I've built my own proxy server, but the error remains, whereas it shouldn't. Why?

 

查看评论 · 已于 2016年2月26日 发布 · fdfdsfds

0

关注者

0

投票

0

评论


fdfdsfds 进行了评论,

社区评论 Q&A - Help center and community

Roman Sandler, I need whatever makes it work, which is  sending an ajax request to an external, not mine own third-party server. What do you mean exactly? How might I not need CORS?

查看评论 · 已于 2016年2月26日 发布 · fdfdsfds

0

关注者

0

投票

0

评论


fdfdsfds 创建了一个帖子,

帖子 Q&A - Help center and community

I'm trying to send an ajax request to "example123.com". 

 

requests: {
  something: {
    url: 'https://api.example123.com/something',
    type: 'GET',
    dataType: 'json',
    cors: true,
    xhrFields: { 
      withCredentials: true
    },
  headers: {
   "Authorization": "123"
 }
},
}

 

But I have an error:

 

XMLHttpRequest cannot load https://api.example123.com/something.
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.

Origin 'https://mycompany.zendesk.com' is therefore not allowed access.

 

As I understand, I can't do anything about it because it's example123.com who has to allow Access Controll Allow Origin policy on their website, not me, right?

已于 2016年2月25日 发布 · fdfdsfds

0

关注者

4

投票

7

评论