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",
|
"name": "tether",
|
||||||
"version": "0.6.0",
|
"version": "0.8.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "tether",
|
"name": "tether",
|
||||||
"version": "0.6.0",
|
"version": "0.8.0",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/cookie": "^11.0.2",
|
"@fastify/cookie": "^11.0.2",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tether",
|
"name": "tether",
|
||||||
"version": "0.7.0",
|
"version": "0.8.0",
|
||||||
"description": "Communication server using the Nexlink protocol",
|
"description": "Communication server using the Nexlink protocol",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,12 @@ const app = Fastify({
|
||||||
});
|
});
|
||||||
|
|
||||||
app.register(cors, {
|
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,
|
credentials: true,
|
||||||
methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"],
|
methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue