You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update dependencies and enhance documentation: Upgrade @diffusionstudio/core-v4 to version 4.0.2, and add required HTTP headers section for proper operation in README and migration guide.
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,14 @@ new core.RectangleClip({
117
117
})
118
118
```
119
119
120
+
## Required Headers
121
+
122
+
Diffusion Studio Core requires specific HTTP headers to be set for proper operation. These headers enable the use of SharedArrayBuffer and other advanced browser APIs needed for video processing.
123
+
124
+
The following headers are required:
125
+
-`Cross-Origin-Opener-Policy: same-origin`
126
+
-`Cross-Origin-Embedder-Policy: credentialless`
127
+
120
128
## Pricing
121
129
122
130
You can use the engine for free as long as you keep the "Made with Diffusion Studio" watermark on the rendered video. To remove the watermark, you can purchase a [license key](https://www.diffusion.studio/core-rendering-engine#pricing).
Copy file name to clipboardExpand all lines: docs/src/content/index.mdx
+78Lines changed: 78 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,3 +20,81 @@ import * as core from '@diffusionstudio/core';
20
20
21
21
const composition =newcore.Composition();
22
22
```
23
+
24
+
## Required Headers
25
+
26
+
Diffusion Studio Core requires specific HTTP headers to be set for proper operation. These headers enable the use of SharedArrayBuffer and other advanced browser APIs needed for video processing.
27
+
28
+
The following headers are required:
29
+
-`Cross-Origin-Opener-Policy: same-origin`
30
+
-`Cross-Origin-Embedder-Policy: credentialless`
31
+
32
+
### Vite
33
+
34
+
Add the following to your `vite.config.js`:
35
+
36
+
```js
37
+
exportdefault {
38
+
server: {
39
+
headers: {
40
+
'Cross-Origin-Opener-Policy':'same-origin',
41
+
'Cross-Origin-Embedder-Policy':'credentialless',
42
+
}
43
+
},
44
+
}
45
+
```
46
+
47
+
### Next.js
48
+
49
+
For Next.js, add the headers in your `next.config.js`:
Copy file name to clipboardExpand all lines: docs/src/content/v3-v4.mdx
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ This guide will help you migrate your code from Diffusion Studio Core v3 to v4.
4
4
5
5
## Table of Contents
6
6
7
+
-[Required Headers](#required-headers)
7
8
-[Composition Changes](#composition-changes)
8
9
-[Layer Management](#layer-management)
9
10
-[Clip API Changes](#clip-api-changes)
@@ -17,6 +18,16 @@ This guide will help you migrate your code from Diffusion Studio Core v3 to v4.
17
18
-[Keyframe Animations](#keyframe-animations)
18
19
-[Text Clip Properties](#text-clip-properties)
19
20
21
+
## Required Headers
22
+
23
+
> **Important:** v4 requires specific HTTP headers to be configured for proper operation. These headers enable SharedArrayBuffer and other advanced browser APIs needed for video processing.
24
+
25
+
You must configure your development server and production environment to set these headers:
26
+
-`Cross-Origin-Opener-Policy: same-origin`
27
+
-`Cross-Origin-Embedder-Policy: credentialless`
28
+
29
+
For more examples and production deployment configurations, see the [Required Headers section](/docs) in the main documentation.
0 commit comments