Ask Your Question

god830's profile - activity

2018-11-26 11:25:46 -0500 asked a question CORS when using JavaScript get Lists containers for an account localhost

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!