-
Notifications
You must be signed in to change notification settings - Fork 20
Enable CORS for abundance.maslowcnc.com file uploads and add Link Abundance button #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Maslow-Main
Are you sure you want to change the base?
Conversation
Co-authored-by: BarbourSmith <[email protected]>
Co-authored-by: BarbourSmith <[email protected]>
Co-authored-by: BarbourSmith <[email protected]>
|
@copilot The process of getting the machine's IP address to upload files automatically is confusing for users. Please add a button to the settings menu directly below the "Config" button called "Link Abundance" which will open the address That way the ip address can be saved automatically by abundance. |
Co-authored-by: BarbourSmith <[email protected]>
Added the "Link Abundance" button to the settings menu. The button opens The button is located in the settings tab button row (after the refresh button) and uses a gear icon to match the settings theme. When clicked, it opens Abundance in a new tab with the IP parameter set. Commit: 6f55e7c |
|
@copilot There are two issues with this. First I meant for the button to be added to the div with ID Second, when I use that button it is linking me to |
…ress Co-authored-by: BarbourSmith <[email protected]>
Fixed both issues:
The button now opens Commit: 1e6ab56 |
|
@copilot This is now failing with the following error message in the console:
and a popup which says: |
Co-authored-by: BarbourSmith <[email protected]>
Fixed the CORS issue. The problem was that CORS headers were only being sent for specific endpoints (/upload, /files) but not for the root endpoint (/) that Abundance uses to test the connection. Added CORS headers to:
All endpoints now include OPTIONS preflight handling and send the Access-Control-Allow-Origin header with every response. The connection test from abundance.maslowcnc.com should now work correctly. Commit: 7bc986f |


Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.