Title: Extend CORSPolicy to allow for custom headers · Issue #5 · JavaWebStack/web-utils · GitHub
Open Graph Title: Extend CORSPolicy to allow for custom headers · Issue #5 · JavaWebStack/web-utils
X Title: Extend CORSPolicy to allow for custom headers · Issue #5 · JavaWebStack/web-utils
Description: Is your feature request related to a problem? Please describe. By default CORS blocks access to all headers except content-type. Custom headers need to be exposed using the header Access-Control-Expose-Headers. Describe the solution you'...
Open Graph Description: Is your feature request related to a problem? Please describe. By default CORS blocks access to all headers except content-type. Custom headers need to be exposed using the header Access-Control-Ex...
X Description: Is your feature request related to a problem? Please describe. By default CORS blocks access to all headers except content-type. Custom headers need to be exposed using the header Access-Control-Ex...
Opengraph URL: https://github.com/JavaWebStack/web-utils/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extend CORSPolicy to allow for custom headers","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nBy default CORS blocks access to all headers except `content-type`. Custom headers need to be exposed using the header `Access-Control-Expose-Headers`.\r\n\r\n**Describe the solution you'd like**\r\nThe CORSPolicy class should have a chainable method called `exposeHeader` which will take the header/pattern to be further used by building a comma seperated header value for `Access-Control-Expose-Headers` according to the spec.\r\n\r\n**Describe alternatives you've considered**\r\nI've implemented a simple RequestInterceptor which sets this header manually.\r\n\r\n**Additional context**\r\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers","author":{"url":"https://github.com/x7airworker","@type":"Person","name":"x7airworker"},"datePublished":"2024-01-05T10:35:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/web-utils/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:585e79dd-fabd-8f39-374e-f56ff8461d6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95F8:31B172:4085:4E18:697DB457 |
| html-safe-nonce | 56c867de32173207699cf6b756eb5c43c0d8acf2164b12e4249b5b372841aacf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUY4OjMxQjE3Mjo0MDg1OjRFMTg6Njk3REI0NTciLCJ2aXNpdG9yX2lkIjoiNDU4MTgyMTUxMDU2NTM0NDM0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f50e01faa57934cb36d8fa2fa223a9ffd4bb6d88e260b9761e8dee353f227728 |
| hovercard-subject-tag | issue:2067108752 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaWebStack/web-utils/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89d592dfa0d11aae9c0cc1d154794909826bbf7f75b26a14a2c6ee87d585bab8/JavaWebStack/web-utils/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89d592dfa0d11aae9c0cc1d154794909826bbf7f75b26a14a2c6ee87d585bab8/JavaWebStack/web-utils/issues/5 |
| og:image:alt | Is your feature request related to a problem? Please describe. By default CORS blocks access to all headers except content-type. Custom headers need to be exposed using the header Access-Control-Ex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | x7airworker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaWebStack/web-utils git https://github.com/JavaWebStack/web-utils.git |
| octolytics-dimension-user_id | 73674659 |
| octolytics-dimension-user_login | JavaWebStack |
| octolytics-dimension-repository_id | 363203695 |
| octolytics-dimension-repository_nwo | JavaWebStack/web-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 363203695 |
| octolytics-dimension-repository_network_root_nwo | JavaWebStack/web-utils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width