chore: add csrf and cors config to live preview

This commit is contained in:
Paul Popus
2024-03-18 10:29:00 -03:00
parent 0f7106bf4a
commit 4df49689a9

View File

@@ -22,8 +22,8 @@ export default buildConfigWithDefaults({
globals: ['header', 'footer'],
},
},
cors: ['http://localhost:3001'],
csrf: ['http://localhost:3001'],
cors: ['http://localhost:3000', 'http://localhost:3001'],
csrf: ['http://localhost:3000', 'http://localhost:3001'],
collections: [Users, Pages, Posts, Tenants, Categories, Media],
globals: [Header, Footer],
onInit: seed,