CORS when using JavaScript get Lists containers for an account localhost

asked 2018-08-15 18:34:14 -0500

god830 gravatar image

I know I can add a header for containers so that there won't be CORS issue when getting a container, but I can't do that for an account. So when I try to use this: /v1/{account} to show account details and list containers, it shows: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

How to fix it? Thanks!

edit retag flag offensive close merge delete