10000 [Worker support] test for no cors headers by madhur-tandon · Pull Request #1374 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

[Worker support] test for no cors headers #1374

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

Merged
merged 14 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
disable directly
  • Loading branch information
madhur-tandon committed Apr 10, 2023
commit d21da0c0831ac9817bb85d5aae4e380f3b89a061
3 changes: 0 additions & 3 deletions pyscriptjs/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ def __init__(self, base_url, *args, **kwargs):
self.base_url = base_url
super().__init__(*args, **kwargs)

def disable_cors_headers(self):
self.RequestHandlerClass.enable_cors_headers = False

def run(self):
try:
self.serve_forever()
Expand Down
2 changes: 1 addition & 1 deletion pyscriptjs/tests/integration/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def disable_cors_headers(self):
if self.dev_server is None:
self.router.enable_cors_headers = False
else:
self.dev_server.disable_cors_headers()
self.dev_server.RequestHandlerClass.enable_cors_headers = False

def run_js(self, code):
"""
Expand Down
0