Add Access-Control-Allow-Origin header to HTTP server response

Have a suggestion for "Everything"? Please post it here.
Post Reply
meiercn
Posts: 1
Joined: Sat Aug 26, 2023 11:07 am

Add Access-Control-Allow-Origin header to HTTP server response

Post by meiercn »

Dear Everything developer,

I am a user of your amazing search software Everything on Windows. I am using the latest test version 1.5 alpha, which has a built-in HTTP server for searching files using the HTTP protocol. For example, http://127.0.0.1/?search=cmd.exe will return the search results.

However, when I try to access the HTTP server from a userJS script in my browser, I encounter a CORS (Cross-Origin Resource Sharing) issue. This prevents me from using your software in my userJS script.

I would like to suggest that you modify the HTTP server to add the header Access-Control-Allow-Origin:* to the response. This will allow me to use your software in userJS without any CORS issue.

I think this would be a useful feature for many users who want to integrate Everything with their web applications or scripts.

Thank you for your consideration and your great work on Everything.

Sincerely, A happy user of Everything


(I am not very good at English, so I asked new Bing to help me translate the above content.)
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Access-Control-Allow-Origin header to HTTP server response

Post by void »

Thank you for your feedback meiercn,

To add Access-Control-Allow-Origin:* to your Everything HTTP Server header:
  • Exit Everything (File -> Exit)
  • Open your %APPDATA%\Everything\Plugins-1.5a.ini with Notepad
  • Under the [HTTP Server64.dll] section: (or [HTTP Server32.dll] section for the x86 plugin)
  • Change the following line:
    header=
    to:
    header=Access-Control-Allow-Origin:*
  • Save changes and restart Everything.
This header ini setting is a CSV comma (,) delimited list of header items.
Post Reply