-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a resource in sample book store app, getting cors error #33
Comments
GitHub Hey @Ashokvsetty thanks for following the course! Can you please confirm the Nginx Proxy got the correct config file? This one is loaded as a ConfigMap volume. This one adds some headers to the request to avoid CORS blocking. You can check this by getting the value from the configmap and verifying the Proxy pod loads it. The config map template is located in “front-end/infra/helm/templates/proxy-configmap.yaml”. |
@mariomerco looks fine to me, please find the content from the running nginx front proxy pod. root@front-end-development-acg-front-end-proxy-6d56b49948-b9ckx:/# hostname
} |
Thanks for this @Ashokvsetty. It looks like the config is correct. Now, can you please provide the logs of that pod when you submit the request? Also, please perform a complete review from the Los balancer all the way down to the nginx pod. This means:
If all that trace makes sense, then we need to look deeper. Just check that everything is pointing where it needs to point. |
Unable to create a resource in sample book store app, when i look at the browser developer tools, getting the below cors error.
Access to XMLHttpRequest at 'https://api.dev.twintower.click/resources-api/list?format=json' from origin 'https://bookstore.dev.twintower.click/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The text was updated successfully, but these errors were encountered: