digitalocean / digitalocean/nginxconfig.io

Optional headers for wasm

Open
#477 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
28.3k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

## Feature request

It would be nice to have a check box to enable wasm headers. I am not sure if this is particular for flutter, which suggests https://docs.flutter.dev/platform-integration/web/wasm#serve-the-output-with-an-http-server

### Feature description

Create a check box that adds a block of custom directive with required headers, something like:

```
location / {
add_header Cross-Origin-Embedder-Policy "credentialless"
add_header Cross-Origin-Opener-Policy "same-origin"
}
```

### How the feature is useful

Enables use of wasm when correct headers are sent

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files or tests. Start by tracing the option controls and generated NGINX template, then verify that enabling the checkbox emits the two requested headers in the location block while leaving output unchanged when disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx, wasm
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.