우리는 Discourse 배지를 우리 플랫폼에 통합하기를 원합니다. 즉, 사용자가 Discourse 계정을 우리 플랫폼의 계정과 연결할 수 있도록 하려는 것입니다.
계정을 연결하기 위해 Discourse Connect가 적절할 것 같다고 생각했습니다. 하지만 리다이렉션 과정에서 CORS 오류가 발생하고 있습니다:
Access to fetch at 'https://forum.freecodecamp.org/session/sso_provider?sso=<hash>'
(redirected from 'http://localhost:3000/discourse/connect') from origin
'http://localhost:8000' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
If an opaque response serves your needs, set the request's mode to 'no-cors'
to fetch the resource with CORS disabled.
Discourse Connect 설정을 여러 가지 시도해 보았으며, 서버, 클라이언트, Discourse 주소를 discourse connect provider secrets에 추가해 보았지만 결과는 마찬가지였습니다.