Cors issue with python api (rest)

I am trying to utilize a python rest API but i’m getting CORS errors that I can’t seem to overcome. several of the stack overflow suggestions include changing the angular code ie :: if I change this will Radzen just regenerate over it when I run it before deploying ?

i’m getting this eror ( after a long fight )
Access to XMLHttpRequest at ‘’ from origin ‘http://localhost:8000’ has been blocked by CORS policy: Request header field Pragma is not allowed by Access-Control-Allow-Headers in preflight response.

Thanks for your help

Hi @cmhdev,

The linked stack overflow topic is about Angular 1. Radzen produces Angular 5 applications and by default sends the required CORS headers. You would need to update your python rest API to support CORS otherwise it will not be accessible from any JavaScript application that runs in the browser.

Yeah I wasn’t sure which side it was on since postman works fine. it seems only angular might be different so I wanted to make sure it wasn’t something with that.

Hi @cmhdev,

Indeed Postman doesn’t obey the same origin policy unlike all browsers. This is a browser feature and not something specific to Angular - all REST API’s that are consumable from client-side JavaScript need to support CORS.