Skip to content

Get Voucher not working on WebGL #528

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
Get721Voucher and Get1155Voucher are not working correctly on a WebGL build, I get a CORS error on https://lazy-minting-voucher-signer.herokuapp.com/voucher721?receiver=0xabed4239e4855e120fda34adbeabdd2911626ba1 endpoint

To Reproduce
Steps to reproduce the behavior:

  1. Add the VoucherMinter721 or VoucherMinter1155 prefab on SampleScene
  2. Build and run with WebGL
  3. After build finishes, do the login connecting to a wallet on the browser
  4. Click on Get Voucher Mint 721 (or 1155)
  5. See console error

Expected behavior
Voucher is generated and the user needs to sign the transaction on his wallet

Screenshots
Screenshot 2023-07-19 at 12 44 03

Desktop (please complete the following information):

  • Chainsafe SDK version: [latest]
  • Unity Platform: [WebGL ]
  • Unity version [2022]
  • OS [Mac]

Additional context
Access to fetch at 'https://lazy-minting-voucher-signer.herokuapp.com/voucher721?receiver=0xabed4239e4855e120fda34adbeabdd2911626ba1' from origin 'http://localhost:50437' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Metadata

Metadata

Assignees

Labels

Type: BugAdded to issues and PRs if they are addressing a bugVersion: 2.5All the issues related to 2.5

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions