Skip to content

Conversation

Vito0912
Copy link
Contributor

@Vito0912 Vito0912 commented Aug 3, 2025

Brief summary

As more tools become available for ABS, they depend on the browser to make requests.
Because of CORS, this is not possible. Right now, there is no simple way to enable CORS without using environment variables, and there is no option to allow it for specific origins, which would be better.
Because of this, some people use proxy methods, which put users at high risk of abuse and stolen credentials. This PR adds an option to let certain origins make requests with CORS.

Which issue is fixed?

In-depth Description

How have you tested this?

My own online toolbox

Screenshots

grafik

@Vito0912
Copy link
Contributor Author

Vito0912 commented Aug 3, 2025

Hey @advplyr,

it would be awesome if this could be reviewed soon/ included in the next release as it would make things more secure and easier for "external plugins" to be created. Normally I wouldn't ask for this, but it would be nice if this can be reviewed (and if needed changed) and then merged asap.

@advplyr
Copy link
Owner

advplyr commented Aug 3, 2025

Hey good idea. I'll check this out later today

@advplyr
Copy link
Owner

advplyr commented Aug 3, 2025

Instead of automatically saving I think this should have a save button like the prefixes setting.

image

This is because validation doesn't work well with this component. If you enter an invalid URL it just says there is an invalid URL but it stays in the select input.

@Vito0912
Copy link
Contributor Author

Vito0912 commented Aug 4, 2025

Yeah, I also noticed that, but I thought a save button inside the settings page could look a bit weird and the message would be a good trade-off.
I will look into that on how to make it more responsive for the user.

@Vito0912
Copy link
Contributor Author

Vito0912 commented Aug 4, 2025

I updated the code to it is more responsive

@advplyr
Copy link
Owner

advplyr commented Aug 4, 2025

I increased the width of the inputs and separated that setting out into a new "Security" section since it didn't belong with Display

image

Thanks!

@advplyr advplyr merged commit e510174 into advplyr:master Aug 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants