Nam Nguyen
Nam Nguyen

Reputation: 61

WebView does not really support CORS in JavaFX 2.2?

So how to make browser of WebView add Origin like others or solution? And we also try to add Origin in headers of jquery ajax setting but browser leave it out.

Thanks

Upvotes: 2

Views: 1606

Answers (1)

Jaimie Whiteside
Jaimie Whiteside

Reputation: 1220

For those who haven't/don't want to sign up to JIRA.

Adding sun.net.http.allowRestrictedHeaders=true as a VM arg will turn cors back on for JavaFX WebView.

Upvotes: 3

Related Questions