blockscout-rs
blockscout-rs copied to clipboard
/api/v2/stats has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.
I can't set the CORS
I have this error in the frontend
I ran the backend with
mix phx.server
I don't use docker I saw docker-compose/proxy/default.conf.template and I edited that file whit this
add_header 'Access-Control-Allow-Origin' '*' always;
but it did not work I supose it's cuz that file is only if you run with docker
someone can help me pls?
Sorry about my english btw it's not my native language