-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RcpServer: Fixed CORS and Basic Auth #812
Conversation
Fixed CORS with basic auth Added AllowOrigins for basic auth to work
Fixed a typo with EnableCors using SessionEnabled for default value if no value is present for EnableCors. >Copy and paste isn't your friend sometimes.
…ied header for CORS ("Content-Type")
…-modules into RcpServer-CORS
We are facing some CORS issue using Gitpod. I tried to re-route C# RPC Plugin with express node, using Axios to make the I am not understanding why the browser is having issues with the request directly to the RPC plugin. The strange situation is that this just happens when there are multiple requests. Let's say 5 requests per second. |
Some stuff to note here is the But if you could elaborate a little bit more. Like what is |
@cschuchardt88, considering your comment it was found that For me it is ready. Thanks for you attention. |
Maybe we can also move // Default value is 1 minutes
options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(1);
// Default value is 15 seconds
options.Limits.RequestHeadersTimeout = TimeSpan.FromSeconds(15); |
do you want that in seconds or minutes for |
Also something we may want to consider in the future is "Enable forward proxies"; will help with web hosting and cloud stuff. |
I think the PR should keep the same behavior as nowadays, @cschuchardt88. Parameters could be in seconds. Regarding or issue about the |
sure! |
… implemented in Settings.cs, RcpServer.cs Changed "KeepAliveTimeout" TimeSpan to seconds.
…-modules into RcpServer-CORS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@superboyiii ,can you test?
ping @superboyiii |
Any update on this @superboyiii ? Just fyi, this fixes a bug in the wild. |
* 'master' of github.com:neo-project/neo-modules: Ensure max length (neo-project#845) Update .editorconfig and run code analyze (neo-project#866) Added AspNetCore (neo-project#863) RcpServer: Fixed CORS and Basic Auth (neo-project#812) Fix response from getversion due to WS removal (neo-project#859) Local dev setup (neo-project#861)
closes #811
Change Log