Rest api cors issue

I have created an app in IONIC using Cuba rest js which is getting data from CUBA application hosted on web. My ts file is like this

import { Component } from '@angular/core';
import * as cuba from '@cuba-platform/rest';
  selector: 'app-home',
  templateUrl: '',
  styleUrls: [''],

export class HomePage  {
  constructor() {
    this.loginResult = "Initialised";

    const app = cuba.initializeApp({
      name: 'myApp',
      apiUrl: '',
      restClientId: 'xxxxxxxx',
      restClientSecret: 'xxxxxx'
    this.myApp = cuba.getApp('myApp');

    this.myApp.login('xxxxxxx','xxxxxxxxx').then(value =>{
      this.loginResult = "Succesful";
      this.loginResult = ss;

Though the application run smoothly with cuba application on local host, but with cuba application on web, it gives a CORS error.
IONIC app running on browser

Access to fetch at ‘’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

IONIC App running on mobile

CubaRestError: Failed to Fetch

I have tried org.apache.catalina.filters.CorsFilter CORS filters in TOMCAT web.xml file in webapps folder but no avail. There are large number of posts on stackoverflow saying that Catalina CORS filter in not working on TOMCAT and tried the solutions mentioned in these posts but not successfull.
CUBA documentation says by default, all CORS requests to the REST API are allowed.
Please guide

If CUBA application didn’t allow CORS requests, it wouldn’t work at localhost as well. If it works fine at localhost:8080, then it’s probably not CUBA application settings that forbid CORS requests.
I didn’t have experience in working with cloudjiffy. Did you try deploying your CUBA app to some other PaaS (not cloudjiffy)? Do you get the same CORS errors if you deploy somewhere else?

Thanks Maxim. But even jmix documentation says it support CORS by default. Please elaborate in light of your post on jmix Cors problem with authenticatedUrlPatterns - Support - Jmix wherein you have recommended to specify CORS configuration for your URLs explicitly.
I am calling rest api through URLs like this
I have already applied CORS filter in TOMCAT. Pl guide.

Jmix documentation says that CORS requests to standard REST API endpoints (like /rest/**) are allowed by default. All other endpoints are not allowed, you must define additional configuration for them - that’s what the post you reference was about.