Checkins: "x" to remove selection on current date prevents information from saving and greys out buttons
How it works now
- When trying to remove a Condition, Symptom, or Treatment, clicking the "x" next to a selection on the current date prevents information from saving (the selection removal and toggling a selection on/off) and greys out the "Add a ____", "Back", and "Next" buttons
- This gives three console errors:
-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://flaredown-api.herokuapp.com/api/trackings/955694. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). [Learn More]
-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://flaredown-api.herokuapp.com/api/trackings/955694. (Reason: CORS request did not succeed). [Learn More]
-
The adapter operation was aborted
- Trying to remove a Condition, Symptom, or Treatment on a prior day does not cause the same errors
How it should work Users should be able to remove a Condition, Symptom, or Treatment, with no issues.
I did some digging and found that this error was occurring due to SameSite=none cookies requiring 'secure'. In order to address this, we need to:
- [x] Force https (should be taken care of by @benlangfeld's work on #498)
- [ ] Add the 'Secure' attribute to the SameSite=None cookies