Skip to content
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

Suggestion: Alter the .html page to allow for multiple tests without editing the JS file #2

Open
Reelix opened this issue Oct 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Reelix
Copy link

Reelix commented Oct 15, 2021

As it stands, you are required to alter the JS file in a text editor, and then reload the page, then inspect the console to see if CORS is set or not for the edited domain.

I suggest adding a basic text box that runs JS code with the set value that will allow multiple tests without requiring editing of any files, or the refreshing of the page.

@njgibbon
Copy link
Owner

njgibbon commented Oct 16, 2021

Hey @Reelix ,

I don't want to alter the initial "tool" because it really is meant to be absolute bare-bones and minimal. Relying on browser tools for console output and the manual changes really is part of the design!

However, I do see utility in what you're saying :) So what i'd like to do is just have 2 folders. One called minimal or something like that for the existing html / js. And one called tool where we could have what you describe.

It still needs to be super minimal so only HTML, CSS, JS. A text box, a button and an output area. Each time you hit the button it clears the output area and outputs the new state which could be the http response or a CORS failure or any other failure that is caught.

@njgibbon njgibbon added the enhancement New feature or request label Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants