Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/reverse-watch-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
- name: INGESTORS_CSFLOAT_BASEURL
value: https://csfloat.com
- name: HTTP_ALLOWEDORIGINS
value: ['chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg']
value: "['chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg']"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CORS origin value contains extraneous brackets and quotes

High Severity

The HTTP_ALLOWEDORIGINS env var is now set to the literal string ['chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg'], including brackets and single quotes. Viper/mapstructure will parse this into a []string containing that entire literal (brackets and all) as a single element. In server.go, the CORS check does an exact string comparison (allowedOrigin == origin), so it will never match the actual Chrome extension origin chrome-extension://jjicbefpemnphinccgikpdaagjebbnhg, effectively blocking all Chrome extension requests.

Fix in Cursor Fix in Web

- name: HTTP_ALLOWFIREFOXEXTENSIONS
value: 'true'
- name: DATABASE_HOST
Expand Down
Loading