최근 검색


최근 검색 없음

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

댓글