0xFableOrg / roll-op

The simplest way to spin your own dev / prod rollup, fully configurable.
BSD 3-Clause Clear License
92 stars 25 forks source link

CORS management #96

Closed eerkaijun closed 10 months ago

eerkaijun commented 10 months ago

Should enable CORS to allow request from other domains.

norswap commented 10 months ago

Can you say a bit more about this? What other domains need to call in?

eerkaijun commented 10 months ago

So basically cross origin resource sharing (CORS) is to restrict webpages from making requests to a different domain. For e.g frontend is hosted on xyz.com while the paymaster is hosted on abc.com (so they are in different domain and the server wouldn't accept the request). Added CORS management on the paymaster server to allow requests from other domains.

norswap commented 10 months ago

Oh I see, I must have been tired and thought it was in the 0xFable frontend!

Let's figure out the pnpm settings than merge.