Henk Mollema
e790a9bb10
Inject ICorsPolicyProvider instance through Invoke
...
This allows for scoped instances of `ICorsPolicyProvider` to be injected in the CORS middleware and prevents turning them into singletons.
Resolves #105
2018-11-09 14:40:51 -08:00
Pranav K
808bf234b9
Merge pull request #201 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-11-09 11:38:35 -08:00
Pranav K
f05b0e792d
Add some logging for functional tests
2018-11-08 14:24:14 -08:00
Pranav K
be53aa9cac
Remove skipped test
...
Fixes https://github.com/aspnet/AspNetCore/issues/3597
2018-10-30 13:15:06 -07:00
Pranav K
a74235c7ec
Reflect Access-Control-Request-Headers and Access-Control-Request-Method when policy is configured to support wildcard
...
Fixes https://github.com/aspnet/AspNetCore/issues/3684
2018-10-26 11:11:33 -07:00
Javier Calvarro Nelson
aa88f16b08
Fix cors with creds ( #193 )
2018-10-24 12:56:07 -07:00
Pranav K
393815b8ad
Increase test timeout to accomodate slow machines
2018-10-16 10:04:12 -07:00
Pranav K
8ad589c4d1
Provide better errors if launching the browser failed
2018-10-12 17:22:07 -07:00
Pranav K
2690a3f621
Remove filtering from CorsService
...
* Add browser based integration tests
2018-10-11 12:23:40 -07:00
Pranav K
b9166f14f1
Skipping test failing on Win2k8 R2
2018-10-08 09:32:30 -07:00
Pranav K
6f76189846
Normalize internationalized domain names when adding to CORS
...
Fixes https://github.com/aspnet/Home/issues/3353
2018-10-05 11:08:02 -07:00
Christer van der Meeren
e85c36fa8c
Clarify CORS policy result log messages ( #177 )
...
Fixes https://github.com/aspnet/Home/issues/3419
2018-08-20 08:25:45 -07:00
Flying Wraptor
2db11051d8
Removed Simple request filtering
2018-08-01 16:02:13 -07:00
Sindhudweep Sarkar
feceb3ddea
Lowercase scheme and host to better align with RFC 6454.
2018-07-23 12:22:15 -07:00
Daniel Little
554855cab3
No CORS headers sent if Exception is thrown
...
- Normally headers are added however if a controller throws an exception then CORS headers not be present.
Addresses aspnet/Home#3220
2018-06-25 14:00:30 -07:00
Ryan Brandenburg
69e5a8c599
Upgrade to netcoreapp22
2018-05-07 16:24:17 -07:00
John Luo
c4b9e061ca
Update usage of TestSink
2018-04-12 17:29:31 -07:00
Jass Bagga
95c663a289
Handle malformed origin Uri ( #139 )
...
Addresses aspnet/Home#2318
2018-01-08 11:04:57 -08:00
Pranav K
cec4d3799a
Update samples and tests to target netcoreapp2.1
2017-11-14 09:57:46 -08:00
Nate McMaster
8fd36866f9
Pin tool and package versions to make builds more repeatable
2017-10-31 18:04:49 -07:00
Kiran Challa
5eae687ddd
Updated EnableCorsAttribute and UseCors extension to not have to supply a policy name.
2017-09-12 17:06:05 -07:00
Nate McMaster
370bc7d7c5
Use PackageLineup to manage PackageReference versions
2017-08-30 17:22:09 -07:00
Nate McMaster
51aecc2c18
Use Directory.Build.props/targets
2017-08-22 12:32:16 -07:00
Nate McMaster
1c093cbbad
Upgrade to xunit 2.3.0-beta4
2017-08-22 12:32:02 -07:00
Jass Bagga
c2262b7234
Update TFM to netstandard2.0 ( #112 )
2017-05-22 16:42:46 -07:00
Nate McMaster
6a701fcdb4
Remove workaround from test project
2017-05-15 12:38:12 -07:00
Nate McMaster
1e148819af
Upgrade test framework versions
2017-05-12 16:38:04 -07:00
John Luo
905114e960
Migration
2017-05-04 16:32:12 -07:00
Kiran Challa
e79afcdb64
Converted samples and test projects to run on netcoreapp2.0
2017-03-23 17:06:27 -07:00
Pranav K
275cd6b8d1
Remove net451 as a cross-compile target
2017-03-22 18:58:46 -07:00
Nate McMaster
fd3486df0f
Unify dependency versions to one file and remove workarounds
2017-03-15 12:58:08 -07:00
Doug Bunting
2f262ec001
Bump test projects up to .NET 4.5.2
...
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-14 16:33:44 -08:00
Nate McMaster
f34848b760
Upgrade to VS 2017
2017-01-30 16:04:19 -08:00
Pranav K
bdf9d2a2e2
Updating to 4.4 CoreFx packages
2016-12-21 16:16:12 -08:00
Michiel Post
2dbfb8839b
Include VaryByOrigin when there are multiple Origins configured ( #84 )
...
Fixes #97
* Added negative test and updated origin to valid origin url
* Fixed tabs and spaces
2016-12-21 15:49:50 -08:00
Choc
8214954d5b
Add support for clients to configure a policy with custom logic about whether an origin should be allowed and provide a default implementation of the functionality to allow wildcard subdomains
2016-11-29 12:27:00 -08:00
Jass Bagga
09be5bde9d
PR comments incorporated
2016-11-22 15:02:37 -08:00
Jass Bagga
fb240d4382
PR comments incorporated
2016-11-22 14:57:38 -08:00
Jass Bagga
712dff32bb
organize usings
2016-11-21 17:20:25 -08:00
Jass Bagga
b3bdba1559
PR comments incorporated. Working on making SampleDestination dynamic- define the policy within the sample through a UI.
2016-11-21 15:31:14 -08:00
Jass Bagga
5dcf47ef12
PR comments incorporated
2016-11-17 17:36:18 -08:00
Jass Bagga
517dc3c860
Added tests for logging
2016-11-16 18:25:15 -08:00
Jass Bagga
4de03b6dff
Added logging for preflight requests and origin headers
2016-11-15 15:07:17 -08:00
Pranav K
de383b7ee4
Updating versions to 1.2.0-*
2016-11-09 14:16:56 -08:00
Pranav K
8cd356f170
Updating to netcoreapp1.1
2016-10-13 11:13:08 -07:00
Pranav K
f9193cb285
Revert "Updating to netcoreapp1.1"
...
This reverts commit 9c80faa498 .
2016-10-12 16:08:08 -07:00
Pranav K
9c80faa498
Updating to netcoreapp1.1
2016-10-12 13:44:57 -07:00
Pranav K
fa5dcf55a6
Updating partner package versions
2016-09-28 11:49:51 -07:00
Kiran Challa
15b66cec1f
[ Fixes #77 ] Make HTTP method match as case-insensitive
2016-08-08 14:28:16 -07:00
Pranav K
b5abd73e34
Updating to Moq \ Castle.Core that does not require imports
2016-08-08 12:32:20 -07:00