有没有办法让 apollo 反应有一个 HTTPS 端点?

Is there a way to have an HTTPS endpoint for apollo react?

当我有一个 http url 时,遵循 apollo react 文档工作正常,但是当我使用带有 SSL 的端点时,我 运行 进入 CORS 错误。

import { ApolloClient} from 'apollo-boost';
import { HttpLink } from 'apollo-link-http';

const link = new HttpLink({
  uri: 'https://mywebsite.dev/graphql',
  useGETForQueries: true
});

const client = new ApolloClient({
  cache,
  link: 
});

我知道 httpLink 是针对 http 的,但我没有看到任何关于如何实现 https 的文档link。

我怀疑这是一个 http link 问题 - 客户端是否在 https 中,端点是否在 https 中并接受该来源?