最近の検索


最近の検索はありません

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

コメント