I'm having this error in a project:
Failed to load http://127.0.0.1:8000/hqi/pages: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:4200' is therefore not allowed access.
And I can not seem to figure it out, I followed some examples that taught you how to create a proxy file:
const proxy = [
{
context: '/hqi',
target: 'http://localhost:8000'
}];
module.exports = proxy;
But it did not work, the error persists, could anyone help me?