I am running angular application on localhost:4200 while GraphQL are running using the following environment.
export const environment = {
BASE_URL: 'https://iotech.ddns.net/',
LOGIN_URL: 'https://iotech.ddns.net/',
METRIC_VALUES_URL: `${'https://iotech.ddns.net/' + 'gql/'}v1/graphql`,
REST_BASE_URL: ' https://iotech.ddns.net/config/api/v1/',
production: true,
hmr: false,
staging: false,
POLL_RATE: 10000
};
According to GraphQL it's mentioned the CORS are enabled but I am getting the error while accessing.I have also added the proxy.config.json but nothing help.
{
"/gql/v1/graphql": {
"target": "https://iotech.ddns.net/",
"pathRewrite": { "^/api": "" },
"secure": false
},
"logLevel": "debug"
}