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
Describe the bug
Error uploading files via 'rx.upload' : Access to XMLHttpRequest at 'http://localhost:8000/_upload' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
To Reproduce
Steps to reproduce the behavior:
rx.upload(
rx.flex(
rx.button("Select file", ),
rx.text("Drag and drop file here or click button to select file"),
align='center',
justify='center',
spacing='3',
direction="column",
),
id="import_lexicon_file",
padding="5em",
accept={
"text/csv": [".csv"],
"text/tab-separated-values": [".tsv"]
},
on_drop=SelectFileDialogState.handle_upload(
rx.upload_files(upload_id="import_lexicon_file")
),
border_radius='1em',
auto_focus=False,
max_size=2*1024*1024, # 2MB
)
Expected behavior
In version 0.6.5, the development can upload files normally, but after the recent upgrade to 0.6.7, this error occurs, I hope to fix it as soon as possible.
Screenshots
Specifics (please complete the following information):
Describe the bug
Error uploading files via 'rx.upload' : Access to XMLHttpRequest at 'http://localhost:8000/_upload' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In version 0.6.5, the development can upload files normally, but after the recent upgrade to 0.6.7, this error occurs, I hope to fix it as soon as possible.
Screenshots
Specifics (please complete the following information):
Additional context
no
The text was updated successfully, but these errors were encountered: