alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

CORS config is missing #84

Closed WajeehZantout closed 5 years ago

WajeehZantout commented 6 years ago

CORS_ORIGIN is missing in config.js, and it is used in app.js:

  const corsOpts = {
    origin: config.CORS_ORIGIN, //undefined
    methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'HEAD', 'PATCH'],
  };
darrenchaker commented 6 years ago

Excellent and thank you for your efforts! Darren Chaker

kimmobrunfeldt commented 5 years ago

Thanks, now fixed in master.