CORS
This commit is contained in:
parent
8d3b0fa7d3
commit
e8a4338281
3 changed files with 9 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "tether",
|
||||
"version": "0.6.0",
|
||||
"version": "0.8.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "tether",
|
||||
"version": "0.6.0",
|
||||
"version": "0.8.0",
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@fastify/cookie": "^11.0.2",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tether",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.0",
|
||||
"description": "Communication server using the Nexlink protocol",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,12 @@ const app = Fastify({
|
|||
});
|
||||
|
||||
app.register(cors, {
|
||||
origin: "http://localhost:3000",
|
||||
origin: [
|
||||
"http://localhost:3000",
|
||||
"http://localhost:4173",
|
||||
"http://192.168.11.101:4173",
|
||||
"https://pulsar.aslan2142.space",
|
||||
],
|
||||
credentials: true,
|
||||
methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue