Hi Vincent,
Thanks! that worked just for what I needed! I ended up modifying the AWX image but that's no longer needed and it wasn't working anyways because AWX ConfigMaps wasn't getting updated and /etc/tower/settings.py had the default values.
With what you mentioned it added the values I needed for the CORS policy.
Before I was getting this error:
"https://<url:port> 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 requestes resource."
I just changed the spec in my awx.yaml
spec:
extra_settings:
- setting: MIDDLEWARE
value: "['corsheaders.middleware.CorsMiddleware'] + MIDDLEWARE"
- setting: CORS_ORIGIN_ALLOW_ALL
value: "True"
kubectl deploy -f awx.yaml
and AWX ConfigMaps was updated in Kubernetes, I noticed the containers didn't update its settings.py even when the ConfigMaps was OK, I had to downscale deployment to 0 and back to 3 in my case so the changes were sent to the AWX containers.
Sent the REST API call again and now is working as intended.
Thank you!
Regards
Alex