Publishing a template fails with CORS error
khakra
HOBBYOP

4 months ago

Access to fetch at 'https://backboard.railway.com/graphql/internal?q=templatePublish' from origin 'https://railway.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Solved

6 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


4 months ago

Hello,

Can you provide the overview you are trying to use when publishing the template?


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

3 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 3 months ago


brody

Hello,Can you provide the overview you are trying to use when publishing the template?

khakra
HOBBYOP

3 months ago

# Deploy and Host keygen on Railway

Keygen is a fair source JSON HTTP API for software licensing and distribution. It supports license key management, activations, entitlements, concurrency and usage tracking, as well as secure artifact distribution with automatic upgrades.

## About Hosting keygen

Self-hosting Keygen gives you complete control over your software licensing infrastructure. The deployment involves running a Ruby on Rails application backed by PostgreSQL for data persistence and Redis for caching and background jobs. Keygen provides a comprehensive JSON HTTP API for license key management, machine activations, entitlements, usage tracking, and secure artifact distribution with automatic upgrades. The API follows JSON:API conventions with some developer-friendly deviations. You'll need to configure environment variables for database connections, Redis, secret keys, and optional integrations. The platform supports role-based access control, rate limiting, and cryptographic signature verification for secure offline licensing.

## Common Use Cases

- Software licensing - Issue and validate license keys for desktop apps, server applications, and on-premise software
- Machine activation tracking - Enforce per-device licensing with fingerprint-based machine management and heartbeat monitoring
- Feature entitlements - Control access to specific features and capabilities within your software products
- Usage metering - Track concurrent usage, enforce limits, and monitor license consumption patterns
- Offline licensing - Generate cryptographically signed machine files for air-gapped environments
- Secure distribution - Distribute software artifacts with automatic upgrades and checksum verification
- Multi-tenant licensing - Manage licenses across multiple products, environments, and customer organizations

## Dependencies for keygen Hosting

- PostgreSQL (included in this template)
- Redis (included in this template)

### Deployment Dependencies

Full self-hosting documentation: https://keygen.sh/docs/self-hosting/

**Main configuration requirements:**

- `KEYGEN_ADMIN_EMAIL` - Admin email for the Keygen instance
- `KEYGEN_ADMIN_PASSWORD` - Admin password for the Keygen instance, will be auto-generated if not set

### Implementation Details

**Environment Setup:**

After the service is deployed, send the below API request to create an API token.

```bash
curl -X POST https://<RAILWAY_PUBLIC_DOMAIN>/v1/accounts/<ACCOUNT_ID>/tokens \
  -H 'Accept: application/vnd.api+json' \
  -u "KEYGEN_ADMIN_EMAIL:KEYGEN_ADMIN_PASSWORD"
```

`RAILWAY_PUBLIC_DOMAIN` is the public URL of your Railway deployment for the keygen-web service
`ACCOUNT_ID` is same as the Railway Project ID. You can find this in the keygen-web service variable `KEYGEN_ACCOUNT_ID`
`KEYGEN_ADMIN_EMAIL` is the admin email you set during deployment
`KEYGEN_ADMIN_PASSWORD` is the admin password you set during deployment

The API token is generated with admin privileges and provides full access to the Keygen API. The token can be found in the response of the API call above as `"token": "admin-somehexnumber"`. This API Token can then be used with https://keymana.com/ to manage your products, licenses, and users, etc.

## Why Deploy keygen on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying keygen on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

Status changed to Awaiting Railway Response Railway 3 months ago


3 months ago

This looks like a known issue where certain content in template overviews can trigger Cloudflare's security filters. The markdown you're using appears quite detailed, which is great for users, but something in it is likely being flagged.

Could you temporarily simplify the overview to isolate what's causing the block? Start with a minimal description and gradually add sections back until you hit the issue. Common culprits include code blocks with curl commands, URLs, or certain special characters.


Status changed to Awaiting User Response Railway 3 months ago


Railway
BOT

3 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 3 months ago


brody

This looks like a known issue where certain content in template overviews can trigger Cloudflare's security filters. The markdown you're using appears quite detailed, which is great for users, but something in it is likely being flagged.Could you temporarily simplify the overview to isolate what's causing the block? Start with a minimal description and gradually add sections back until you hit the issue. Common culprits include code blocks with curl commands, URLs, or certain special characters.

khakra
HOBBYOP

2 months ago

Looks like the world curl in the content was an issue


Status changed to Awaiting Railway Response Railway 2 months ago


sarahkb125
EMPLOYEE

2 months ago

Glad you found it! Please let us know if you have any other issues.


Status changed to Awaiting User Response Railway 2 months ago


Status changed to Solved sarahkb125 2 months ago


Loading...