haimkastner / unitsnet-js

A better way to hold unit variables and easily convert to the destination unit

Home Page:https://www.npmjs.com/package/unitsnet-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS Error in OpenAPI Spec Example

Shentoza opened this issue · comments

When trying to execute the OpenAPI Spec Example I'm getting a CORS issue.
image

Specs:

  • no vpn
  • tested in Chrome & Edge

https://haimkastner.github.io/unitsnet-openapi-spec-example/

Hey @Shentoza,

I didn't mean to make it a "live" example, but just to demonstrate how the DTO is represented in the OpenAPI spec.

But... since you asked so nicely :) and it's extremely simple to do, I added it...

You can now make the call and get a real random DTO unit value representing (always) 10 meters.

Enjoy.