You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs because the Access-Control-Allow-Origin: * header is not present in the new Response() object. In the dev environment we need the headers so the client has not problems in reaching the requested resources. Fix: to add a new property private headers: Headers; in Melonpan, which contains all set headers, in order to pass them as a param in all the new Response() objects. So now we just need to call melonpan.cors() to set all the default headers, which are:
This error occurs because the
Access-Control-Allow-Origin: *
header is not present in thenew Response()
object. In the dev environment we need the headers so the client has not problems in reaching the requested resources. Fix: to add a new propertyprivate headers: Headers;
inMelonpan
, which contains all set headers, in order to pass them as a param in all thenew Response()
objects. So now we just need to callmelonpan.cors()
to set all the default headers, which are:I shall make a pull request to fix it.
The text was updated successfully, but these errors were encountered: