Hello,
I am using the Apollo Client to query data from Strapi, our headless CMS.
My team added a metatag to our index.html header to prevent a Mixed Content warning that resulted in their gtags being blocked.
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
However, now, my Apollo Client is getting blocked as Apollo Client requests via HTTP (Advanced HTTP networking - Apollo GraphQL Docs). Is there any way to get my Apollo Client functional again?
const httpLink = new HttpLink({ uri: `${config.STRAPI_EC2_INSTANCE_IP}/graphql`, useGETForQueries: true })
const client = new ApolloClient({
link: httpLink,
cache: new InMemoryCache()
});
...
<ApolloProvider client={client}>
{children}
</ApolloProvider>