You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm deploying Flyte Core chart on Microk8s. I'm port-forwarding to be able to access the components locally. I installed without SSL enabled and everything worked. I want to add SSL so I can move to deploying on the cloud but I can't make it work yet, in the moment because of a CORS error.
I generated a self signed certificate to use on both admin and console components.
Trying to make SSL work I added the following configurations on the values files:
I also edited the console deployment manually to mount the key and certificate because I didn't find another way to do it. I mounted the files on /scripts/certificate after finding in the console application code where it looks for it. The CERTIFICATE_PATH variable above doesn't affect the behavior.
Now I'm able to access the console on https://localhost:8088 and the admin API on https://localhost:8089 (both insecure). But the console gets a CORS error when doing requests to the admin API:
Access to XMLHttpRequest at 'https://locahost:8089/api/v1/projects' from origin 'https://localhost:8088' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Given the admin configuration for CORS, why would I still get a CORS error?
I'm not experienced with web applications, so a noob question: should be an Access-Control-Allow-Origin header in the response headers?
Suppose I resolve this CORS error, can the console make https requests without verifying the admin API certificate? How do I configure it to skip certificate verification?
Expected behavior
Enable SSL with self signed certificated
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm deploying Flyte Core chart on Microk8s. I'm port-forwarding to be able to access the components locally. I installed without SSL enabled and everything worked. I want to add SSL so I can move to deploying on the cloud but I can't make it work yet, in the moment because of a CORS error.
I generated a self signed certificate to use on both admin and console components.
Trying to make SSL work I added the following configurations on the values files:
Admin values:
Console configmap:
I also edited the console deployment manually to mount the key and certificate because I didn't find another way to do it. I mounted the files on
/scripts/certificate
after finding in the console application code where it looks for it. TheCERTIFICATE_PATH
variable above doesn't affect the behavior.Now I'm able to access the console on https://localhost:8088 and the admin API on https://localhost:8089 (both insecure). But the console gets a CORS error when doing requests to the admin API:
Given the admin configuration for CORS, why would I still get a CORS error?
These are the headers on the response:
I'm not experienced with web applications, so a noob question: should be an Access-Control-Allow-Origin header in the response headers?
Suppose I resolve this CORS error, can the console make https requests without verifying the admin API certificate? How do I configure it to skip certificate verification?
Expected behavior
Enable SSL with self signed certificated
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: