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 helps us to be able handle the OPTIONS (method) request. When customizing server on ModernJs, I want to expose some APIs. Because these APIs are called on a different domain so browsers will send the OPTIONS request automatically. However, currently, ModernJs server can't catch the OPTIONS request so it throws the CORS error.
What does the proposed API look like?
In the file packages/server/core/src/serverBase.ts.
I expect we can add the getter for options. Because it's duplicated with the name of property options, so I suggest that we'll use serverOptions for that property and have method getOptions to get its value
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
This helps us to be able handle the OPTIONS (method) request. When customizing server on ModernJs, I want to expose some APIs. Because these APIs are called on a different domain so browsers will send the OPTIONS request automatically. However, currently, ModernJs server can't catch the OPTIONS request so it throws the CORS error.
What does the proposed API look like?
In the file
packages/server/core/src/serverBase.ts
.I expect we can add the getter for
options
. Because it's duplicated with the name of propertyoptions
, so I suggest that we'll useserverOptions
for that property and have methodgetOptions
to get its valueThe text was updated successfully, but these errors were encountered: