n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.38k stars 135 forks source link

Page Assist creating CORS issue for Box Tools #180

Open wfjsw opened 1 month ago

wfjsw commented 1 month ago

When Page Assist is enabled, Box Tools cannot communicate with the Box website. According to the console, a CORS issue arise:

Access to XMLHttpRequest at 'http://127.0.0.1:17223/status?ms=1724898719595' from origin 'https://wustl.app.box.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Looking at the request, there are unexpected CORS preflight requests for a GET request:

image

The issue is gone when disabling the extension.

n4ze3m commented 1 month ago

Hey, sorry about the issue caused by Page Assist. Page Assist rewrites the header of the Ollama URL to work in the browser without CORS errors. I'll investigate this issue and let you know