This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247380 - Code generated by the CORS filter wizard does not work for me
Summary: Code generated by the CORS filter wizard does not work for me
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 20:06 UTC by Petr Jiricka
Modified: 2016-07-07 09:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2014-09-22 20:06:43 UTC
I generated the CORS filter from template, and got the following error in the browser:

"Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers."

The workaround was to add X-Requested-With to the value of the Access-Control-Allow-Headers header, see also this somewhat similar issue at StackOverflow:
http://stackoverflow.com/questions/5027705/error-in-chrome-content-type-is-not-allowed-by-access-control-allow-headers

Should we generate different code by default?
Comment 1 Martin Balin 2016-07-07 09:54:15 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss