Missing CORS headers
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 84
- Forks
- 30
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I just tried various 1.2.x version and none of them set any CORS headers, so even running on localhost is failing for me due to different ports.
I fixed that locally by editing `node_modules/@codeceptjs/ui/bin/codecept-ui.js` and change
```javascript
const io = require('socket.io')();
```
to
```javascript
const io = require('socket.io')({
cors: {
origin: "http://localhost:3333",
credentials: true,
methods: ["GET", "POST"],
transports: ['websocket', 'polling']
},
allowEIO3: true
});
```
A proper solution would require to make the origin configurable.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.