@motiadev/core 0.7.2-beta.135-765285 → 0.7.2-beta.135-931764

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,6 +199,15 @@ const createServer = (lockedData, eventManager, state, config) => {
199
199
  res.header('Access-Control-Allow-Private-Network', 'true');
200
200
  res.status(200).end();
201
201
  });
202
+ app.use((_req, res, next) => {
203
+ res.header('Access-Control-Allow-Origin', '*');
204
+ res.header('Access-Control-Allow-Methods', '*');
205
+ res.header('Access-Control-Allow-Headers', '*');
206
+ res.header('Access-Control-Max-Age', '600');
207
+ res.header('Access-Control-Allow-Credentials', 'true');
208
+ res.header('Access-Control-Allow-Private-Network', 'true');
209
+ next();
210
+ });
202
211
  app.use(router);
203
212
  (0, state_endpoints_1.stateEndpoints)(app, state);
204
213
  (0, api_endpoints_1.apiEndpoints)(lockedData);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@motiadev/core",
3
3
  "description": "Core functionality for the Motia framework, providing the foundation for building event-driven workflows.",
4
4
  "main": "dist/index.js",
5
- "version": "0.7.2-beta.135-765285",
5
+ "version": "0.7.2-beta.135-931764",
6
6
  "dependencies": {
7
7
  "@amplitude/analytics-node": "^1.3.8",
8
8
  "body-parser": "^1.20.3",