Describe the bug
Downloading admin translations gives the following error
127.0.0.1 - - [07/Jun/2019 21:13:30] "OPTIONS /v1/admin/content/translations/all HTTP/1.1" 308 -
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should download zip file
Additional details (please complete the following information):
Additional context
Working on it
This is an FE issue. I've tested the API locally with the JWT token of an admin user. Was able to download it. @CosmicCoder96 Please transfer this to FE.
Also, this was working fine before. Don't know what happened. Would be great if you could take a look.
@mrsaicharan1 The following is not a FE issue , I checked into it and found that the following is due to the CORS , We need to check for Access Control headers returned from header, So that preflight response made by browser can be successful
@CosmicCoder96 Please add frontend sites to CORS allow origin
@iamareebjamal Was this removed recently? It used to work before.
IDK
@mrsaicharan1 AFAIK due to old dependency and packages , the following error was not getting shown , still this was present from before
@mrsaicharan1 I am taking up this one, fixed it on my local!
@kushthedude @uds5501 It's never ~lupus~ CORS. 馃槃
When there is an internal error on serve, it fails to return anything, which throws a CORS exception, as 500 is not an acceptable status code.
Closed in #3336
Most helpful comment
@kushthedude @uds5501 It's never ~lupus~ CORS. 馃槃
When there is an internal error on serve, it fails to return anything, which throws a CORS exception, as 500 is not an acceptable status code.