mirror of
https://github.com/nspcc-dev/neofs-rest-gw.git
synced 2026-03-04 04:29:24 +00:00
CORS for /upload with header #75
Labels
No labels
I2
I3
I3
I4
S2
S3
S3
S4
U0
U1
U2
U3
U3
U3
U4
blocked
bug
config
documentation
enhancement
feature
go
help wanted
question
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-rest-gw#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mike-petrov on GitHub (Mar 22, 2024).
Originally assigned to: @tatiana-nspcc on GitHub.
Current Behavior
Request
GET https://rest.fs.neo.org/v1/upload/<container_name>with data and name body without headers works, but if I want to set an attributes (it will be header:x-attribute-filepath: 123/123) it's being blocked by browser because of "CORS Missing Allow Origin":related to https://github.com/nspcc-dev/neofs-rest-gw/issues/166, https://github.com/nspcc-dev/neofs-rest-gw/issues/180
Expected Behavior
Panel working fine.
Steps to Reproduce
Can be reproduced with panel.fs.neo.org if you're to upload an object
Context
panel.fs.neo.org is broken because of this.
Regression
Yes, 0.7.2 handled this fine.
Your Environment
@roman-khimov commented on GitHub (Mar 22, 2024):
We need to try
Access-Control-Allow-Headers: "*", but per specification it's not compatible with authenticated requests.@roman-khimov commented on GitHub (Mar 22, 2024):
The core issue here, btw, its that
uploadcan have any X-Attribute-*. We can limit it of course to some set of standard values, but it's not the best option for this interface.