-
Notifications
You must be signed in to change notification settings - Fork 268
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
BUG - deletion of links through web-ui (server-related) #2459
Comments
I am a bit confused because allow_methods is already set with "*": https://github.com/GNS3/gns3-server/blob/3.0/gns3server/api/server.py#L70 |
now I am a bit confused as well. |
Sorry, I thought you were talking about v3.0. For v2, I think you must have changed this code: https://github.com/GNS3/gns3-server/blob/master/gns3server%2Fweb%2Fweb_server.py#L314-L325 Is this correct? |
That's correct. |
This was only tested in the web-ui, it throws an error upon deleting a link.
The reason is CORS related, probably the preflight checks of the DELETE request is being blocked.
The solution was to add
to the cors ResourceOptions in web_server.py
Can you please check if this bug is reproducible?
if so, i'd love to submit a pull request, perhaps discuss an alternative solution.
The text was updated successfully, but these errors were encountered: