CORS does not work in my hubs #3995
-
I follow #3926 but still cannot open the external website in my custom client.
Here are Chrome Dev errors while I opening hubs: phoenix-utils.js:51 GET https://xxx.com/api/v1/meta 502 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
CORS is not the problem here. As the log message suggested you need to change your Content Security Policy (CSP) list. I appreciate that it is confusing. In future I would suggest searching here and Discord for key terms first. I answered this question already earlier in the week. Also, don't delete parameters directly from AWS unless you are sure you know what you are doing. Everything you need should be available through the Hubs Cloud Admin pages. |
Beta Was this translation helpful? Give feedback.
-
CORS and CSP are different things. CORS is what the remote server allows you to download and CSP is what sources the local page trusts to do sensitive things like run scripts. You might need to add your remote server to the CSP list of your Hubs Cloud. These are my settings so you can see the format. |
Beta Was this translation helpful? Give feedback.
CORS is not the problem here. As the log message suggested you need to change your Content Security Policy (CSP) list. I appreciate that it is confusing.
In future I would suggest searching here and Discord for key terms first. I answered this question already earlier in the week.
Also, don't delete parameters directly from AWS unless you are sure you know what you are doing. Everything you need should be available through the Hubs Cloud Admin pages.