Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CORS parameters to web.xml #105

Merged
merged 5 commits into from
Aug 25, 2016
Merged

Add CORS parameters to web.xml #105

merged 5 commits into from
Aug 25, 2016

Conversation

LvlAndFarm
Copy link

Add 3 web.xml parameters for better CORS management (crossDomainOrigin,
crossDomainHeaders, and crossDomainMethods). Requires web.xml parameter
enableCrossDomain to be set to true

Walid Sabihi added 2 commits August 25, 2016 12:58
Add 3 web.xml parameters for better CORS management (crossDomainOrigin,
crossDomainHeaders, and crossDomainMethods). Requires web.xml parameter
enableCrossDomain to be set to true
Add null parameter checks to cross domain settings
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 63.398% when pulling 5ba1111 on LvlAndFarm:master into 655965c on feroult:master.

@feroult
Copy link
Owner

feroult commented Aug 25, 2016

@LvlAndFarm this is awesome! The only think is that it breaks backward compatibility. Would you mind to keep the default values from the previous version if a specific option is not set? It could be inside the CrossDomainParams class where you set the default values to null.

Thanks man!

Add default CORS headers to not break backward-compatibility
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 63.316% when pulling 09d99fb on LvlAndFarm:master into 655965c on feroult:master.

Most logic is now performed in the CrossDomainManager class
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 63.244% when pulling 2221f14 on LvlAndFarm:master into 655965c on feroult:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 63.29% when pulling f2f6f42 on LvlAndFarm:master into 655965c on feroult:master.

@LvlAndFarm
Copy link
Author

I just fixed backwards compatibility and moved most of the logic to the CrossDomainManager

@feroult feroult merged commit f2f6f42 into feroult:master Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants