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
The value * only counts as a special wildcard value for requests without credentials
For now, everything is working, but it's possible that things might break unexpectedly.
Returning the content of Access-Control-Request-Headers in Access-Control-Allow-Headers should satisfy every client.
Please note, I'm not a web dev, so take my theories with the needed skepticism
The text was updated successfully, but these errors were encountered:
Changes to CORS functionality:
- `Access-Control-Allow-Origin: *` is set for all requests
- for pre-flight OPTIONS requests
- specify methods: `Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS`
- if the client sent `Access-Control-Request-Headers` then echo back the same value in `Access-Control-Allow-Headers`. If no `Access-Control-Request-Headers` were sent, then send back a default set
- set `Access-Control-Max-Age: 86400` to that may improve performance
- Add CORS tests to the proxy-manager
Thanks for looking into this. I refactored this code in #83 and now llama-swap will echo back whatever was asked for in Access-Control-Request-Headers. This should also address the issue in #77 as well.
Followup to #77
I'm now getting a deprecation warnings in the electron console that
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Headers#sect states that
For now, everything is working, but it's possible that things might break unexpectedly.
Returning the content of
Access-Control-Request-Headers
inAccess-Control-Allow-Headers
should satisfy every client.Please note, I'm not a web dev, so take my theories with the needed skepticism
The text was updated successfully, but these errors were encountered: