Getting CORS error while creating quotas via javascript

Solution In Progress - Updated -

Issue

  • I am developing a Webapp using js and trying to create a tenant and then create quotas for that tenant. I was able to create the tenant, then from response, I got the id and call the api to create a quota for that tenant. However, I don't get the cors from /api/tenants/:id/quotas and get 404 error.
  • Error:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost/api/tenants/1000000000140/quotas. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
    
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost/api/tenants/1000000000140/quotas. (Reason: CORS request did not succeed).
    

Environment

  • Red Hat CloudForms 4.6
  • Javascript

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In