Nuxt js cors problem on digitalocean

My code local ok, but when i upload my project on digitalocean api request showing cors error
Nginx:

server {
listen 80;
listen [::]:80;
index index.html;
server_name freeconvertany.com www.freeconvertany.com;

location / {
    proxy_pass http://localhost:3000;
    proxy_set_header Access-Control-Allow-Origin *;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
} }

Nuxt config

 modules: [
  '@nuxtjs/axios',
  '@nuxtjs/proxy'
],

axios: {
 prefix: '/api',
},

proxy: {
'/api': {
  target: 'http://api.freeconvertany.com/api',
  pathRewrite: {
    '^/api': '/'
  }
 }
},