-
Notifications
You must be signed in to change notification settings - Fork 8
CORS I'm struggling #26
Comments
Hi @flare04 o/ CORS issues are not fun. Maybe you can find something in another CORS issue that would ring a bell: #18 or maybe I can help and we try to figure it out :) We have a live demo deployment of ara-web here: https://web.demo.recordsansible.org/ So there is some CORS action going on and it works. The relevant parts of the configuration are available in the playbook used to deploy them: I think the Truth be told, I haven't had much time to spend on ara-web but I'd be happy to try to point you in the right direction and we can improve the docs if necessary. |
Hi, Thanks for your quick response |
@flare04 I got a feeling you might be hitting a settings regression: ansible-community/ara#149 Could you try pinning dynaconf to <3.0.0 and see if that fixes it ? The bug is on my todo list. |
I might be years late, but I'd like to provide my two cents so this issue can be closed: You say the browser tells you
Which means you are browsing from The config pasted mentions |
I installed ara-web from source page shows correctly other than the CORS section
The error in the browser console is
Access to XMLHttpRequest at 'http://ara.domain.com.au:8000/api/v1/' from origin 'http://ara.domain.com.au:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The error on the ara-manage server is
To get to that error I need to start ara-manage in the following manner
I gave up on trying to setup the settings.yaml file for allowed host it just seemed to always ignore them
This is running on CentOS 8
If I use the CLI from the same host as the browser I get information
The text was updated successfully, but these errors were encountered: