Comments (7)
I tried your repo on my macOS machine and it seems to work there. I'll try again later on my Windows machine and report back.
from socket.
@jwerle thanks I'll try again later on another windows intel machine.
from socket.
More info. It doesn't work on my other windows 11 machine (identical error log I believe).
It does work on Linux Fedora 39.
from socket.
@rorymcd98 okay! We'll dive in and figure this out
from socket.
Thanks - I'll work on Linux for now. Let me know if you need more info.
from socket.
I think I may have found the issue... I get CORS errors when running from a regular command prompt, but if when starting from a Visual Studio Command Prompt the CORS errors are gone and the app loads.
Update:
This only fixes the issue with a production build. Starting the app in development (with vite) still has CORS errors even though vite is configured to allow any origin.
from socket.
I'm running into the same problem on Windows. It seems to work on Linux though.
Edit:
I tried to investigate the differences between Linux and Windows.
On Windows the request to "socket://internal/init" fails because the CORS headers are missing.
On Linux there does not seem to be CORS check, so the resource is requested responded correctly.
So, the webviews on Windows and Linux seem to handle the request differently.
Edit 2:
Running the app without the vite dev server ("ssc build -r") works. When using the context menu to reload the page one can the request to "socket://internal/init". In this case the request works and has response headers (Access-Control-Allow-Headers: * and Access-Control-Allow-Origin: *).
from socket.
Related Issues (20)
- uname() returns an object not a string as documented
- "after" script for build.watch
- Focus application window on Mac when applicationurl event is received HOT 3
- For v0.5.4 these examples need an explicit `application_protocol` line in socket.ini
- application.getCurrentWindow(), other getWindow methods and window.showOpenFilePicker() not working
- Hide icon in dock and in task-switcher for headless apps
- Capital letters in socket.ini bundle_identifier breaks app on Windows
- readfile not working on Linux
- writefile not working correctly on Linux
- `socketsupply.co/config` needs to be updated/rebuild with current verrsion of `CONFIG.md`
- move process.homedir to os.homedir
- fs.watch() strips backslash directory separators for filenames/paths on Windows HOT 1
- Trackpad tap events do not always work HOT 3
- Subcluster emissions seem to always be published and never streamed
- Socket Runtime User Agent that includes User Application Metadata
- attaching a remote inspector / debugger
- check file name lengths
- Bug: `ssc init` fails to run on Windows with certain User Names HOT 1
- socket:network doesn't work in web worker HOT 6
- Install Script Failure HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.