-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
How can we lift the CORS restrictions in pywebview? #1375
Comments
It might be possible by modifying response headers. There is an ongoing effort to add header editing support in #1371 |
Thank you very much for your reply. I would like to ask if there is a direct interaction function now. For example, there is |
You can proxy XHR requests via JS API. In other words you would fetch data in Python and make it available to your frontend via JS API. Something like this Python class API:
def fetchData(self):
return urlopen(..)
webview.create_window(..., js_api=Api()) Javascript pywebview.api.fetchData().then(response => response) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The message to post on the issue when closing it. If none provided, will not comment when closing an issue. |
The text was updated successfully, but these errors were encountered: