first i post the user id and password from the **UI**(angular) to flask

```
  public send_login(user){
           console.log(user)
           return 
     this.http.post(this.apiURL+'/login',JSON.stringify(user),this.httpOptions)
    .pipe(retry(1),catchError(this. 
     handleError))
     } 

```

next i received it from backend

[backend error](https://i.stack.imgur.com/7fXT7.png)

all the operations are working properly but at console the cross origin error is raising

[Error at UI console](https://i.stack.imgur.com/isYQW.png)

the http option in Ui side is mentioned below

```
constructor(private http: HttpClient) { }
  // Http Options
  httpOptions = {
    headers: new HttpHeaders({
      'Content-Type': 'application/json',
      'Access-Control-Allow-Origin': 'http://localhost:9000',
      'Access-Control-Allow-Methods': "GET,POST,OPTIONS,DELETE,PUT",
      'X-Requested-With': 'XMLHttpRequest',
      'MyClientCert': '',        // This is empty
      'MyToken': '' 
    })
  }

```

the cors declared at backend is metioned below

```
cors = CORS(app, resources={r"/login": {"origins": "*"}})
 @app.route('/login', methods=['GET','POST'])
 def loginForm():
 json_data = ast.literal_eval(request.data.decode('utf-8'))
  print('\n\n\n',json_data,'\n\n\n')

```

im not able to find were is the problem is raising

> 
> Note: cross origin arising in the time of login process other wise in the consecutive steps
> 
> 
>