quarchive
quarchive copied to clipboard
CORS preflighting bit wonky
Description
The extensions HTTP requests to the sync api get preflighted. Those requests look a bit wonky (and aren't directly tested).
Steps to reproduce
- Cause a full or partial sync
- Observe the preflight request
Expected result
- Preflight request is responded to pretty fast (
- Preflight response includes the correct caching headers
Actual result
Considerable doubt regarding #1 and #2
Additional details
Fix for this should include a specific test that checks it works (and that no DB activity is done) and that the speciai CORS caching headers are returned.
This probably requires splitting up the (remaining) main blueprint into one for the web ui and one for the sync api. Then get rid of Flask-CORS are write the OPTIONS endpoint by hand.