-
Notifications
You must be signed in to change notification settings - Fork 12
Question: what about CORS ? #69
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
Comments
- Add missing LDAP and TIMER environment variables. Thanks to xet7 ! Closes wekan/wekan-snap#69
Thank you for this feature. Unfortunately, this still doesn't work for me with 1.80 version, after a sudo snap set wekan cors='*'... |
snap config has extra commas |
Maybe after that login, logout and CORS works. Thanks to xet7 ! Related #2045, related wekan/wekan-snap#69
Maybe after that login, logout and CORS works. Thanks to xet7 ! Related #2045, related wekan/wekan-snap#69
Please test Wekan v1.81 is this now fixed ? |
Please test Wekan v1.82 , is this now fixed ? |
Same error with 1.82. Here is my code:
|
With curl I see that * header is in wekan. Did you login to API first first to get valid bearer key, before doing API request? For complete example, see https://github.com/wekan/wekan-gogs |
Login needs to be made with username and password of admin that has access to Admin Panel. |
Not in the same script, but I use a valid token (generated via Postman) for testing. Moreover, by using the same token via Postman, card creation works fine.
Yes, I use admin credentials. |
Please give more descriptive details what is the problem. |
Thank you for your help. Finally, I changed my method. Instead of executing the code client-side , I use a php page that executes the code server-side. It works fine. |
Is there any fix for this? I am using the latest version and still setting cors='*' not working, which makes the API useless if not using from the same host.
|
Yes, see wekan/wekan#2429 that is already in Wekan |
How to enable Cross Origin Resource Sharing on snap version ?
I get this error message when I try to add a card via the API:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Thanks ;-)
The text was updated successfully, but these errors were encountered: