Skip to content

Enable submitting cookies in CORS requests #1189

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

Merged
merged 4 commits into from
Jan 25, 2018

Conversation

renuka-fernando
Copy link
Contributor

Changes

  • Change the value of credentials according to the value of http.withCredentials as in the README.md.

Description

  • Change the value of credentials if http.withCredentials value is true.

Motivation and Context

How Has This Been Tested?

  • Tested with two origins.
  • UI running on localhost:9292 sends requests to the server on localhost:9293.

Screenshots (if appropriate):

Types of changes

  • No code changes (changes to documentation, CI, metadata, etc)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@shockey
Copy link
Contributor

shockey commented Nov 30, 2017

@RenukaFernando, can you add some tests to cover this new functionality?

@renuka-fernando
Copy link
Contributor Author

Hi @shockey,
As per our understanding, writing unit tests for this improvement is troublesome. Can you please help writing integration tests on this?
So then this can be merged.

@shockey
Copy link
Contributor

shockey commented Jan 22, 2018

@RenukaFernando can do!

@shockey shockey added this to the January 26, 2018 milestone Jan 22, 2018
@shockey shockey merged commit b5ec24e into swagger-api:master Jan 25, 2018
@shockey
Copy link
Contributor

shockey commented Jan 25, 2018

thanks, @RenukaFernando!

@renuka-fernando
Copy link
Contributor Author

Thank you! @shockey for you help

@renuka-fernando
Copy link
Contributor Author

Hi @shockey,
We are still facing the issue of handling CORS request. #1236 is fixed the issue and we have tested it with two origins.

Can you please review it?

@dalbani
Copy link

dalbani commented Jan 14, 2019

Hi, maybe a silly question, but could someone explain me how to set this http.withCredentials flag in the context of SwaggerUIBundle (i.e. when deploying Swagger UI as shown on https://github.com/swagger-api/swagger-ui/blob/master/dist/index.html#L41)?

@shockey
Copy link
Contributor

shockey commented Jan 15, 2019

@dalbani, this is a merged PR - if you need help please open a new support ticket 👍

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.

In CORS requests Cookies are not submitted nor setting correctly
4 participants