RCE CORS issue

Community Novice


I am running a CanvalLMS instance in AWS provided by Bitnami.

I seem to be having an issue that is effecting file uploads and course imports and other things. 

RCE in enabled and running, i can go to https://rce.mydomian.net and i get the hello from rce message. 


when i try to upload an image for example to a course page i get this 

Access to fetch at 'https://rce.mydomain.net/api/session' from origin 'https://canvas.mydomian.net' 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.

no matter where i try adding the 'Access-Control-Allow-Orgin' (.htaccess, or the apache config) it does not work.

where do i need to add what to make it work?