CORS origins setup does not work

I want to embed the latest updates from our community on my website:

To accomplish this, I am trying to access the latest.json and will parse that appropriately and embed on my site:

I went to admin and setup the CORS origins:

I even updated app.yml with the following lines and rebuild the whole thing:
DISCOURSE_ENABLE_CORS: true
DISCOURSE_CORS_ORIGIN: ‘https://www.schulminator.com/’
I don’t know if this is needed but it does work with this setting or without.

But still same issue as you check on this site:
https://www.schulminator.com/test?123

Access to XMLHttpRequest at ‘https://community.schulminator.com/latest.json’ from origin ‘https://www.schulminator.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I am really stuck here…

여기서도 같은 문제가 발생합니다.
누군가 제대로 작동하게 만든 적이 있나요?

CORS 설정에서 비슷한 문제를 겪고 계신 분이 있다면, 링크 끝의 슬래시(/)를 제거했는지 확인해 보세요. 몇 시간이나 시간을 낭비하게 만든 어리석은 실수였습니다. :sweat_smile:

CORS 설정에 대한 팁은 분명히 더 명확하게 만들어져야 한다고 생각합니다:

현재 텍스트

크로스 오리진 요청(CORS)에 허용된 오리진. 각 오리진에는 http:// 또는 https://가 포함되어야 합니다. CORS를 활성화하려면 DISCOURSE_ENABLE_CORS 환경 변수를 true로 설정해야 합니다.

제안 초안

크로스 오리진 요청(CORS)에 허용된 오리진. 각 오리진에는 http:// 또는 https://가 포함되고 끝에 슬래시(/)가 없어야 합니다. CORS를 활성화하려면 DISCOURSE_ENABLE_CORS 환경 변수를 true로 설정해야 합니다.

참고로, 이런 내용을 PR로 올리는 방법은 어떻게 되나요? 영어 로케일 여기만 변경하고 번역은 다른 곳에서(예: Transifex) 관리하는 건가요, 아니면 PR에 번역도 함께 포함되어야 하나요?

트레일링 슬래시가 문제라면, 우리의 코드가 자동으로 제거해야 합니다 @sam.

@vinothkannans 여기서 끝 슬래시를 자동으로 제거하도록 변경해 주시겠어요?

이것은 아래 PR에서 이제 수정되었습니다